From 996ce888e1c585ad73cedc89800f4d7790d4ab02 Mon Sep 17 00:00:00 2001 From: Mat Date: Fri, 27 Mar 2020 02:40:16 +0200 Subject: Fix typo in block break particle coordinate (#4555) * Use Vector3d for block break particle * Fix typo --- src/Mobs/Sheep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mobs/Sheep.cpp b/src/Mobs/Sheep.cpp index 4cc871879..34019cfc6 100644 --- a/src/Mobs/Sheep.cpp +++ b/src/Mobs/Sheep.cpp @@ -117,7 +117,7 @@ void cSheep::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { // The sheep ate the grass so we change it to dirt m_World->SetBlock(PosX, PosY, PosZ, E_BLOCK_DIRT, 0); - GetWorld()->BroadcastSoundParticleEffect(EffectID::PARTICLE_BLOCK_BREAK, {PosX, PosY, PosX}, E_BLOCK_GRASS); + GetWorld()->BroadcastSoundParticleEffect(EffectID::PARTICLE_BLOCK_BREAK, {PosX, PosY, PosZ}, E_BLOCK_GRASS); m_IsSheared = false; m_World->BroadcastEntityMetadata(*this); } -- cgit v1.2.3