Fixed particles being emmited on non-player block breaks

This commit is contained in:
Shoghi Cervantes
2015-04-23 17:02:37 +02:00
parent 04f3cc4905
commit ba635b8858
3 changed files with 3 additions and 3 deletions

View File

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