mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Fixed particles being emmited on non-player block breaks
This commit is contained in:
@ -1339,8 +1339,8 @@ class Level implements ChunkManager, Metadatable{
|
||||
$players = $this->getUsingChunk($target->x >> 4, $target->z >> 4);
|
||||
if($player !== null){
|
||||
unset($players[$player->getId()]);
|
||||
$this->addParticle(new DestroyBlockParticle($target->add(0.5, 0.5, 0.5), $target), $players);
|
||||
}
|
||||
$this->addParticle(new DestroyBlockParticle($target->add(0.5, 0.5, 0.5), $target), $players);
|
||||
|
||||
$target->onBreak($item);
|
||||
|
||||
|
Reference in New Issue
Block a user