summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BlockEntityWithItems.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-02-15 15:06:23 +0100
committerMattes D <github@xoft.cz>2014-02-15 15:06:23 +0100
commit48eafee823cb979ded833b5311c0f5c37a8ca0f2 (patch)
treefad70a53bd337fa152f661e32422da5b9699096e /src/BlockEntities/BlockEntityWithItems.h
parentMerge pull request #677 from mc-server/BroadcastParticleEffect (diff)
parentFixed typographical error (diff)
downloadcuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.gz
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.bz2
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.lz
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.xz
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.zst
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.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());
}
}