1
0

Fixed issues with farmland

* Fixed farmland reversion checks not taking into account carrots and
potatoes
* Fixed #623
This commit is contained in:
Tiger Wang 2014-02-03 21:14:52 +00:00
parent b5e898a608
commit 6bbba2644d
2 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public:
if ((Meta < 7) && (Light > 8))
{
a_Chunk.FastSetBlock(a_RelX, a_RelY, a_RelZ, E_BLOCK_CROPS, ++Meta);
a_Chunk.FastSetBlock(a_RelX, a_RelY, a_RelZ, m_BlockType, ++Meta);
}
else if (Light < 9)
{

View File

@ -90,6 +90,8 @@ public:
switch (a_Chunk.GetBlock(a_RelX, a_RelY + 1, a_RelZ))
{
case E_BLOCK_CROPS:
case E_BLOCK_POTATOES:
case E_BLOCK_CARROTS:
case E_BLOCK_MELON_STEM:
case E_BLOCK_PUMPKIN_STEM:
{