mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
ExperienceOrb: don't follow players in other worlds
This commit is contained in:
parent
9003b38be3
commit
854f851525
@ -147,7 +147,7 @@ class ExperienceOrb extends Entity{
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$entity = $this->server->findEntity($this->targetPlayerRuntimeId);
|
$entity = $this->level->getEntity($this->targetPlayerRuntimeId);
|
||||||
if($entity instanceof Human){
|
if($entity instanceof Human){
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user