mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Merge branch '3.5'
This commit is contained in:
@ -150,7 +150,7 @@ class ExperienceOrb extends Entity{
|
||||
return null;
|
||||
}
|
||||
|
||||
$entity = $this->server->getLevelManager()->findEntity($this->targetPlayerRuntimeId);
|
||||
$entity = $this->level->getEntity($this->targetPlayerRuntimeId);
|
||||
if($entity instanceof Human){
|
||||
return $entity;
|
||||
}
|
||||
@ -159,7 +159,7 @@ class ExperienceOrb extends Entity{
|
||||
}
|
||||
|
||||
public function setTargetPlayer(?Human $player) : void{
|
||||
$this->targetPlayerRuntimeId = $player ? $player->getId() : null;
|
||||
$this->targetPlayerRuntimeId = $player !== null ? $player->getId() : null;
|
||||
}
|
||||
|
||||
public function entityBaseTick(int $tickDiff = 1) : bool{
|
||||
|
Reference in New Issue
Block a user