diff options
author | Dave Tucker <dave@dtucker.co.uk> | 2015-11-24 00:39:19 +0100 |
---|---|---|
committer | Dave Tucker <dave@dtucker.co.uk> | 2015-11-24 14:21:40 +0100 |
commit | 83870f9fc0e19da646f408a2d6636adfe4b5c002 (patch) | |
tree | d63858a16962f83d68620bc55c8efeed126874a6 /src/UI | |
parent | Merge pull request #2645 from Gargaj/followedarray (diff) | |
download | cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar.gz cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar.bz2 cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar.lz cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar.xz cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.tar.zst cuberite-83870f9fc0e19da646f408a2d6636adfe4b5c002.zip |
Diffstat (limited to '')
-rw-r--r-- | src/UI/SlotArea.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp index 2c0dfbe40..c7b8d0987 100644 --- a/src/UI/SlotArea.cpp +++ b/src/UI/SlotArea.cpp @@ -20,6 +20,7 @@ #include "../Root.h" #include "../FastRandom.h" #include "../BlockArea.h" +#include "../EffectID.h" @@ -1004,18 +1005,18 @@ void cSlotAreaAnvil::OnTakeResult(cPlayer & a_Player) { // Anvil will break a_Player.GetWorld()->SetBlock(PosX, PosY, PosZ, E_BLOCK_AIR, 0); - a_Player.GetWorld()->BroadcastSoundParticleEffect(1020, PosX, PosY, PosZ, 0); + a_Player.GetWorld()->BroadcastSoundParticleEffect(EffectID::SFX_RANDOM_ANVIL_BREAK, PosX, PosY, PosZ, 0); a_Player.CloseWindow(false); } else { a_Player.GetWorld()->SetBlockMeta(PosX, PosY, PosZ, static_cast<NIBBLETYPE>(Orientation | (AnvilDamage << 2))); - a_Player.GetWorld()->BroadcastSoundParticleEffect(1021, PosX, PosY, PosZ, 0); + a_Player.GetWorld()->BroadcastSoundParticleEffect(EffectID::SFX_RANDOM_ANVIL_USE, PosX, PosY, PosZ, 0); } } else { - a_Player.GetWorld()->BroadcastSoundParticleEffect(1021, PosX, PosY, PosZ, 0); + a_Player.GetWorld()->BroadcastSoundParticleEffect(EffectID::SFX_RANDOM_ANVIL_USE, PosX, PosY, PosZ, 0); } } |