Fixed not respawning adjacent tiles correctly when cancelling block break events

This commit is contained in:
Dylan K. Taylor 2017-10-09 10:30:48 +01:00
parent ac7384a2b4
commit 66a3354b31

View File

@ -2337,7 +2337,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->level->sendBlocks([$this], $blocks, UpdateBlockPacket::FLAG_ALL_PRIORITY);
foreach($blocks as $b){
$tile = $this->level->getTile($blockVector);
$tile = $this->level->getTile($b);
if($tile instanceof Spawnable){
$tile->spawnTo($this);
}