mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed DestroyBlockParticle
This commit is contained in:
@ -1572,12 +1572,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
}
|
||||
|
||||
if($createParticles){
|
||||
$players = $this->getChunkPlayers($target->x >> 4, $target->z >> 4);
|
||||
if($player !== null){
|
||||
unset($players[$player->getLoaderId()]);
|
||||
}
|
||||
|
||||
$this->addParticle(new DestroyBlockParticle($target->add(0.5), $target), $players);
|
||||
$this->addParticle(new DestroyBlockParticle($target->add(0.5, 0.5, 0.5), $target));
|
||||
}
|
||||
|
||||
$target->onBreak($item);
|
||||
|
Reference in New Issue
Block a user