From 0307b6aba07048ea5bde295aa734c0a5af126e1c Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Thu, 2 Jul 2015 16:19:23 -0600 Subject: Added missing parens --- src/Blocks/BlockDirt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Blocks/BlockDirt.h b/src/Blocks/BlockDirt.h index 1411b51f2..335aef08a 100644 --- a/src/Blocks/BlockDirt.h +++ b/src/Blocks/BlockDirt.h @@ -99,7 +99,7 @@ public: BLOCKTYPE above = a_Chunk.GetBlock(BlockX, BlockY + 1, BlockZ); NIBBLETYPE light = std::max(a_Chunk.GetBlockLight(BlockX, BlockY + 1, BlockZ), a_Chunk.GetTimeAlteredLight(a_Chunk.GetSkyLight(BlockX, BlockY + 1, BlockZ))); // Grass does not spread to blocks with a light level less than 5 - if (light > 4 && cBlockInfo::IsTransparent(above)) + if ((light > 4) && cBlockInfo::IsTransparent(above)) { if (!cRoot::Get()->GetPluginManager()->CallHookBlockSpread(*Chunk->GetWorld(), Chunk->GetPosX() * cChunkDef::Width + BlockX, BlockY, Chunk->GetPosZ() * cChunkDef::Width + BlockZ, ssGrassSpread)) { -- cgit v1.2.3