diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-11 23:04:11 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-11 23:04:11 +0100 |
commit | c53406f0d4d83f795e2a445059952b61abb12f34 (patch) | |
tree | f2dd24480f817f8f1def0a2296be3ce28d30e0d4 /src/BlockEntities/ChestEntity.cpp | |
parent | More gcc warnings fixed. (diff) | |
download | cuberite-c53406f0d4d83f795e2a445059952b61abb12f34.tar cuberite-c53406f0d4d83f795e2a445059952b61abb12f34.tar.gz cuberite-c53406f0d4d83f795e2a445059952b61abb12f34.tar.bz2 cuberite-c53406f0d4d83f795e2a445059952b61abb12f34.tar.lz cuberite-c53406f0d4d83f795e2a445059952b61abb12f34.tar.xz cuberite-c53406f0d4d83f795e2a445059952b61abb12f34.tar.zst cuberite-c53406f0d4d83f795e2a445059952b61abb12f34.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/ChestEntity.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/BlockEntities/ChestEntity.cpp b/src/BlockEntities/ChestEntity.cpp index dfbe6ae87..9282da7fd 100644 --- a/src/BlockEntities/ChestEntity.cpp +++ b/src/BlockEntities/ChestEntity.cpp @@ -170,3 +170,18 @@ void cChestEntity::OpenNewWindow(void) + +void cChestEntity::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum) +{ + super::OnSlotChanged(a_Grid, a_SlotNum); + + cWindow * Window = GetWindow(); + if (Window != NULL) + { + Window->BroadcastWholeWindow(); + } +} + + + + |