diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-12 23:06:25 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-12 23:06:25 +0200 |
commit | e71e432633a26d0ab24d2da7e3707e4ab7060296 (patch) | |
tree | b7c83bb6d1040f86907a1f49e0d33e9bdd0a645c /src/UI/Window.cpp | |
parent | Suggestions (diff) | |
download | cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar.gz cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar.bz2 cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar.lz cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar.xz cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar.zst cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.zip |
Diffstat (limited to 'src/UI/Window.cpp')
-rw-r--r-- | src/UI/Window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UI/Window.cpp b/src/UI/Window.cpp index 56e1d00e4..37d3c6bd6 100644 --- a/src/UI/Window.cpp +++ b/src/UI/Window.cpp @@ -1010,7 +1010,7 @@ bool cChestWindow::ClosedByPlayer(cPlayer & a_Player, bool a_CanRefuse) cChestWindow::~cChestWindow() { // Send out the chest-close packet: - m_World->BroadcastBlockAction(m_BlockX, m_BlockY, m_BlockZ, 1, 0, E_BLOCK_CHEST /* Client apparently doesn't mind if we give this to trapped chests as well */); + m_World->BroadcastBlockAction(m_BlockX, m_BlockY, m_BlockZ, 1, 0, m_PrimaryChest->GetBlockType()); m_World->BroadcastSoundEffect("random.chestclosed", m_BlockX * 8, m_BlockY * 8, m_BlockZ * 8, 1, 1); } |