summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-04 14:34:35 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-04 14:34:35 +0200
commitafa60c5c351afd926f42f8bd9f91be92a2853dc0 (patch)
treecf609a1b0c58b87e6431645570b5f1e604f3d43b /source
parentShears mask the leaves' meta (diff)
downloadcuberite-afa60c5c351afd926f42f8bd9f91be92a2853dc0.tar
cuberite-afa60c5c351afd926f42f8bd9f91be92a2853dc0.tar.gz
cuberite-afa60c5c351afd926f42f8bd9f91be92a2853dc0.tar.bz2
cuberite-afa60c5c351afd926f42f8bd9f91be92a2853dc0.tar.lz
cuberite-afa60c5c351afd926f42f8bd9f91be92a2853dc0.tar.xz
cuberite-afa60c5c351afd926f42f8bd9f91be92a2853dc0.tar.zst
cuberite-afa60c5c351afd926f42f8bd9f91be92a2853dc0.zip
Diffstat (limited to '')
-rw-r--r--source/BlockEntities/BlockEntityWithItems.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/BlockEntities/BlockEntityWithItems.h b/source/BlockEntities/BlockEntityWithItems.h
index 77f4ebe2e..587b10461 100644
--- a/source/BlockEntities/BlockEntityWithItems.h
+++ b/source/BlockEntities/BlockEntityWithItems.h
@@ -74,8 +74,10 @@ protected:
virtual void OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
{
ASSERT(a_Grid == &m_Contents);
- ASSERT(m_World != NULL);
- m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
+ if (m_World != NULL)
+ {
+ m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
+ }
}
} ; // tolua_export