Fixed DestroyBlockParticle

This commit is contained in:
Dylan K. Taylor
2017-02-12 16:01:23 +00:00
parent 27f2aec160
commit 91fd99d76a
2 changed files with 2 additions and 7 deletions

View File

@ -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);