1
0

Fixed saplings not growing into trees

git-svn-id: http://mc-server.googlecode.com/svn/trunk@924 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2012-10-03 19:01:34 +00:00
parent 5bbeeb3d66
commit 4168f739e1
2 changed files with 4 additions and 4 deletions

View File

@@ -479,14 +479,14 @@ void cChunk::TickBlocks(MTRand & a_TickRandom)
}
unsigned int Index = MakeIndexNoCheck( m_BlockTickX, m_BlockTickY, m_BlockTickZ );
BLOCKTYPE ID = m_BlockTypes[Index];
switch( ID )
BLOCKTYPE BlockType = m_BlockTypes[Index];
switch (BlockType)
{
case E_BLOCK_FARMLAND: TickFarmland (m_BlockTickX, m_BlockTickY, m_BlockTickZ); break;
default:
{
cBlockHandler * Handler = BlockHandler(ID);
cBlockHandler * Handler = BlockHandler(BlockType);
ASSERT(Handler != NULL); // Happenned on server restart, FS #243
Handler->OnUpdate(m_World, m_BlockTickX + m_PosX * Width, m_BlockTickY, m_BlockTickZ + m_PosZ * Width);
break;