mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Entity: fixed undefined variable in getTargetEntity()
This commit is contained in:
parent
1fcec87b98
commit
cf271dab2b
@ -494,7 +494,7 @@ abstract class Entity extends Location{
|
||||
* @return Entity|null
|
||||
*/
|
||||
public function getTargetEntity() : ?Entity{
|
||||
return $this->targetId !== null ? $this->server->getWorldManager()->findEntity($eid) : null;
|
||||
return $this->targetId !== null ? $this->server->getWorldManager()->findEntity($this->targetId) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user