1
0

cWorld: Manually bind deprecated broadcast functions (#4265)

Ref: https://github.com/cuberite/cuberite/pull/4264#discussion_r204769193
This commit is contained in:
peterbell10
2018-07-27 00:12:41 +01:00
committed by GitHub
parent 950aeffff8
commit cdd8e42587
16 changed files with 362 additions and 114 deletions

View File

@@ -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, PosX}, E_BLOCK_GRASS);
m_IsSheared = false;
m_World->BroadcastEntityMetadata(*this);
}