diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-29 12:36:38 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-29 12:36:38 +0200 |
commit | dde641ce83de474187102f0efbbced826673f54d (patch) | |
tree | cfa07264ef4762567c3ebf504e368e3c330ad6fc /src/UI/Window.cpp | |
parent | Merge pull request #1136 from Howaner/GlobalFixes (diff) | |
download | cuberite-dde641ce83de474187102f0efbbced826673f54d.tar cuberite-dde641ce83de474187102f0efbbced826673f54d.tar.gz cuberite-dde641ce83de474187102f0efbbced826673f54d.tar.bz2 cuberite-dde641ce83de474187102f0efbbced826673f54d.tar.lz cuberite-dde641ce83de474187102f0efbbced826673f54d.tar.xz cuberite-dde641ce83de474187102f0efbbced826673f54d.tar.zst cuberite-dde641ce83de474187102f0efbbced826673f54d.zip |
Diffstat (limited to 'src/UI/Window.cpp')
-rw-r--r-- | src/UI/Window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UI/Window.cpp b/src/UI/Window.cpp index 98a9a0cec..81f75cebb 100644 --- a/src/UI/Window.cpp +++ b/src/UI/Window.cpp @@ -145,8 +145,7 @@ void cWindow::GetSlots(cPlayer & a_Player, cItems & a_Slots) const { int NumSlots = (*itr)->GetNumSlots(); for (int i = 0; i < NumSlots; i++) - { - + { const cItem * Item = (*itr)->GetSlot(i, a_Player); if (Item == NULL) { @@ -1017,6 +1016,7 @@ cEnderChestWindow::~cEnderChestWindow() // Send out the chest-close packet: m_World->BroadcastBlockAction(m_BlockX, m_BlockY, m_BlockZ, 1, 0, E_BLOCK_ENDER_CHEST); + // Play the closing sound m_World->BroadcastSoundEffect("random.chestclosed", m_BlockX * 8, m_BlockY * 8, m_BlockZ * 8, 1, 1); } |