summaryrefslogtreecommitdiffstats
path: root/src/Simulator/SandSimulator.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-03 23:42:26 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-05 17:34:29 +0200
commit7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f (patch)
tree22b1673c30752560887116b3623db0bd17896a5e /src/Simulator/SandSimulator.cpp
parentAdd MC|ItemName plugin message. (diff)
downloadcuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.gz
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.bz2
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.lz
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.xz
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.zst
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.zip
Diffstat (limited to 'src/Simulator/SandSimulator.cpp')
-rw-r--r--src/Simulator/SandSimulator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Simulator/SandSimulator.cpp b/src/Simulator/SandSimulator.cpp
index f305ba61a..c4f57c86a 100644
--- a/src/Simulator/SandSimulator.cpp
+++ b/src/Simulator/SandSimulator.cpp
@@ -254,6 +254,10 @@ void cSandSimulator::FinishFalling(
{
// Rematerialize the material here:
a_World->SetBlock(a_BlockX, a_BlockY, a_BlockZ, a_FallingBlockType, a_FallingBlockMeta);
+ if (a_FallingBlockType == E_BLOCK_ANVIL)
+ {
+ a_World->BroadcastSoundParticleEffect(1022, a_BlockX, a_BlockY, a_BlockZ, 0);
+ }
return;
}