summaryrefslogtreecommitdiffstats
path: root/src/Simulator
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-06 21:46:50 +0200
committerMattes D <github@xoft.cz>2014-05-06 21:46:50 +0200
commit66c5c81e02dd9350542e1dd65b8e33c2f45a011b (patch)
treee719f55d50354e881c8ace1ca83516596519abaf /src/Simulator
parentMerge pull request #927 from mc-server/fixes (diff)
parentRename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count() (diff)
downloadcuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.gz
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.bz2
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.lz
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.xz
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.tar.zst
cuberite-66c5c81e02dd9350542e1dd65b8e33c2f45a011b.zip
Diffstat (limited to 'src/Simulator')
-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;
}