summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2015-07-03 00:19:23 +0200
committerSamuel Barney <samjbarney@gmail.com>2015-07-03 00:19:23 +0200
commit0307b6aba07048ea5bde295aa734c0a5af126e1c (patch)
tree288af24b12fc760d50fdc815f75fb00d508c1cb0 /src/Blocks
parentGrass now only dies if it has an opaque block above it. (diff)
downloadcuberite-0307b6aba07048ea5bde295aa734c0a5af126e1c.tar
cuberite-0307b6aba07048ea5bde295aa734c0a5af126e1c.tar.gz
cuberite-0307b6aba07048ea5bde295aa734c0a5af126e1c.tar.bz2
cuberite-0307b6aba07048ea5bde295aa734c0a5af126e1c.tar.lz
cuberite-0307b6aba07048ea5bde295aa734c0a5af126e1c.tar.xz
cuberite-0307b6aba07048ea5bde295aa734c0a5af126e1c.tar.zst
cuberite-0307b6aba07048ea5bde295aa734c0a5af126e1c.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockDirt.h2
1 files changed, 1 insertions, 1 deletions
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))
{