summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BlockEntityWithItems.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-12 23:01:22 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-12 23:01:22 +0100
commitf97ce3015171fcc6f6c5316810d19eb37c89c5f7 (patch)
tree9be0de9fb745d726242b0137a70665d88cb88ecb /src/BlockEntities/BlockEntityWithItems.h
parentMade player jump reset less ambiguous (diff)
downloadcuberite-f97ce3015171fcc6f6c5316810d19eb37c89c5f7.tar
cuberite-f97ce3015171fcc6f6c5316810d19eb37c89c5f7.tar.gz
cuberite-f97ce3015171fcc6f6c5316810d19eb37c89c5f7.tar.bz2
cuberite-f97ce3015171fcc6f6c5316810d19eb37c89c5f7.tar.lz
cuberite-f97ce3015171fcc6f6c5316810d19eb37c89c5f7.tar.xz
cuberite-f97ce3015171fcc6f6c5316810d19eb37c89c5f7.tar.zst
cuberite-f97ce3015171fcc6f6c5316810d19eb37c89c5f7.zip
Diffstat (limited to 'src/BlockEntities/BlockEntityWithItems.h')
-rw-r--r--src/BlockEntities/BlockEntityWithItems.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/BlockEntities/BlockEntityWithItems.h b/src/BlockEntities/BlockEntityWithItems.h
index bf6289a2f..918781a00 100644
--- a/src/BlockEntities/BlockEntityWithItems.h
+++ b/src/BlockEntities/BlockEntityWithItems.h
@@ -11,6 +11,7 @@
#include "BlockEntity.h"
#include "../ItemGrid.h"
+#include "../UI/WindowOwner.h"
@@ -22,6 +23,7 @@ class cBlockEntityWithItems :
// tolua_end
// tolua doesn't seem to support multiple inheritance?
, public cItemGrid::cListener
+ , public cBlockEntityWindowOwner
// tolua_begin
{
typedef cBlockEntity super;
@@ -77,6 +79,11 @@ protected:
ASSERT(a_Grid == &m_Contents);
if (m_World != NULL)
{
+ if (GetWindow() != NULL)
+ {
+ GetWindow()->BroadcastWholeWindow();
+ }
+
m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
}
}