mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
Entity: fixed undefined variable in getTargetEntity()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user