1
0
Fork 0

Merge pull request #3020 from cuberite/ice_block

Don't remove water after ice block has been destroyed
This commit is contained in:
Julian Laubstein 2016-02-18 08:45:20 +01:00
commit 4f05556028
1 changed files with 5 additions and 1 deletions

View File

@ -1246,7 +1246,11 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
cChunkInterface ChunkInterface(World->GetChunkMap());
BlockHandler(a_OldBlock)->OnDestroyedByPlayer(ChunkInterface, *World, m_Player, a_BlockX, a_BlockY, a_BlockZ);
World->BroadcastSoundParticleEffect(EffectID::PARTICLE_SMOKE, a_BlockX, a_BlockY, a_BlockZ, a_OldBlock, this);
World->DigBlock(a_BlockX, a_BlockY, a_BlockZ);
// This call would remove the water, placed from the ice block handler
if (a_OldBlock != E_BLOCK_ICE)
{
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);
}