mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +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;
|
||||
}
|
||||
|
||||
$entity = $this->server->findEntity($this->targetPlayerRuntimeId);
|
||||
$entity = $this->level->getEntity($this->targetPlayerRuntimeId);
|
||||
if($entity instanceof Human){
|
||||
return $entity;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user