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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockGrass.h b/src/Blocks/BlockGrass.h
index 1292ebfc2..4999ee27b 100644
--- a/src/Blocks/BlockGrass.h
+++ b/src/Blocks/BlockGrass.h
@@ -52,7 +52,7 @@ private:
const Vector3i a_RelPos
) const override
{
- if (!a_Chunk.GetWorld()->IsChunkLighted(a_Chunk.GetPosX(), a_Chunk.GetPosZ()))
+ if (!a_Chunk.IsLightValid())
{
a_Chunk.GetWorld()->QueueLightChunk(a_Chunk.GetPosX(), a_Chunk.GetPosZ());
return;
@@ -133,7 +133,7 @@ private:
}
auto Chunk = a_Chunk.GetRelNeighborChunkAdjustCoords(a_RelPos);
- if (Chunk == nullptr)
+ if ((Chunk == nullptr) || !Chunk->IsValid())
{
// Unloaded chunk
return;