mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Fixed not respawning adjacent tiles correctly when cancelling block break events
This commit is contained in:
parent
ac7384a2b4
commit
66a3354b31
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user