summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockGrass.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Blocks/BlockGrass.h')
-rw-r--r--src/Blocks/BlockGrass.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Blocks/BlockGrass.h b/src/Blocks/BlockGrass.h
index 0e54cb092..341a44b07 100644
--- a/src/Blocks/BlockGrass.h
+++ b/src/Blocks/BlockGrass.h
@@ -60,9 +60,8 @@ public:
return;
}
- NIBBLETYPE light = std::max(a_Chunk.GetBlockLight(a_RelX, a_RelY + 1, a_RelZ), a_Chunk.GetTimeAlteredLight(a_Chunk.GetSkyLight(a_RelX, a_RelY + 1, a_RelZ)));
// Source block is not bright enough to spread
- if (light < 9)
+ if (a_Chunk.GetLightAltered(Vector3i(a_RelX, a_RelY + 1, a_RelZ)) < 9)
{
return;
}
@@ -99,8 +98,7 @@ public:
}
auto abovePos = pos.addedY(1);
BLOCKTYPE above = chunk->GetBlock(abovePos);
- NIBBLETYPE light = std::max(chunk->GetBlockLight(abovePos), chunk->GetTimeAlteredLight(chunk->GetSkyLight(abovePos)));
- if ((light > 4) &&
+ if ((a_Chunk.GetLightAltered(abovePos) > 4) &&
cBlockInfo::IsTransparent(above) &&
(!IsBlockLava(above)) &&
(!IsBlockWaterOrIce(above))