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/ClientHandle.cpp | |
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 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 8897063a0..28fc6756b 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -7,6 +7,7 @@ #include "Bindings/PluginManager.h" #include "Entities/Player.h" #include "Inventory.h" +#include "EffectID.h" #include "BlockEntities/BeaconEntity.h" #include "BlockEntities/ChestEntity.h" #include "BlockEntities/CommandBlockEntity.h" @@ -1236,7 +1237,7 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo // The ItemHandler is also responsible for spawning the pickups cChunkInterface ChunkInterface(World->GetChunkMap()); BlockHandler(a_OldBlock)->OnDestroyedByPlayer(ChunkInterface, *World, m_Player, a_BlockX, a_BlockY, a_BlockZ); - World->BroadcastSoundParticleEffect(2001, a_BlockX, a_BlockY, a_BlockZ, a_OldBlock, this); + World->BroadcastSoundParticleEffect(EffectID::PARTICLE_SMOKE, a_BlockX, a_BlockY, a_BlockZ, a_OldBlock, this); World->DigBlock(a_BlockX, a_BlockY, a_BlockZ); cRoot::Get()->GetPluginManager()->CallHookPlayerBrokenBlock(*m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_OldBlock, a_OldMeta); @@ -2696,7 +2697,7 @@ void cClientHandle::SendSoundEffect(const AString & a_SoundName, double a_X, dou -void cClientHandle::SendSoundParticleEffect(int a_EffectID, int a_SrcX, int a_SrcY, int a_SrcZ, int a_Data) +void cClientHandle::SendSoundParticleEffect(const EffectID a_EffectID, int a_SrcX, int a_SrcY, int a_SrcZ, int a_Data) { m_Protocol->SendSoundParticleEffect(a_EffectID, a_SrcX, a_SrcY, a_SrcZ, a_Data); } |