cBlockInfo static initialisation (#3832)

This commit is contained in:
peterbell10
2017-07-03 18:34:27 +02:00
committed by Lukas Pioch
parent bc861e5bb8
commit d838ef7ba4
6 changed files with 938 additions and 924 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ protected:
// If the chunk we are trying to get the block information from is loaded
if (a_Chunk.UnboundedRelGetBlock(a_RelX + x, a_RelY, a_RelZ + z, Block, Meta))
{
cBlockHandler * Handler = cBlockInfo::Get(Block).m_Handler;
cBlockHandler * Handler = BlockHandler(Block);
// If the block affects growth, add to the adjustment
if (Handler->CanSustainPlant(m_BlockType))