From d838ef7ba4e805d1620dfa4de8215bdfed1207fc Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Mon, 3 Jul 2017 17:34:27 +0100 Subject: cBlockInfo static initialisation (#3832) --- src/Blocks/BlockPlant.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Blocks') diff --git a/src/Blocks/BlockPlant.h b/src/Blocks/BlockPlant.h index d7c5d9f83..bab34f798 100644 --- a/src/Blocks/BlockPlant.h +++ b/src/Blocks/BlockPlant.h @@ -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)) -- cgit v1.2.3