Fixed double plants and beds sometimes dropping in creative

This commit is contained in:
Dylan K. Taylor
2017-08-21 19:25:04 +01:00
parent 592ce3c9e9
commit b8ade18888
8 changed files with 26 additions and 20 deletions

View File

@ -1666,7 +1666,7 @@ class Level implements ChunkManager, Metadatable{
$this->addParticle(new DestroyBlockParticle($target->add(0.5, 0.5, 0.5), $target));
}
$target->onBreak($item);
$target->onBreak($item, $player);
$tile = $this->getTile($target);
if($tile !== null){