summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;