mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
This commit is contained in:
parent
b6025e3f2b
commit
3b7ece3363
@ -564,7 +564,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
Level::getXZ($index, $X, $Z);
|
||||
|
||||
foreach($this->getLevel()->getChunkEntities($X, $Z) as $entity){
|
||||
if($entity !== $this){
|
||||
if($entity !== $this and !$entity->closed and !$entity->dead){
|
||||
$entity->spawnTo($this);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user