mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +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);
|
$this->level->sendBlocks([$this], $blocks, UpdateBlockPacket::FLAG_ALL_PRIORITY);
|
||||||
|
|
||||||
foreach($blocks as $b){
|
foreach($blocks as $b){
|
||||||
$tile = $this->level->getTile($blockVector);
|
$tile = $this->level->getTile($b);
|
||||||
if($tile instanceof Spawnable){
|
if($tile instanceof Spawnable){
|
||||||
$tile->spawnTo($this);
|
$tile->spawnTo($this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user