summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorDave Tucker <dave@dtucker.co.uk>2015-11-24 00:39:19 +0100
committerDave Tucker <dave@dtucker.co.uk>2015-11-24 14:21:40 +0100
commit83870f9fc0e19da646f408a2d6636adfe4b5c002 (patch)
treed63858a16962f83d68620bc55c8efeed126874a6 /src/ClientHandle.cpp
parentMerge pull request #2645 from Gargaj/followedarray (diff)
downloadcuberite-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.cpp5
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);
}