From cf271dab2bd151131200dbb96e46ac0e3878ac74 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 5 Aug 2019 16:19:49 +0100 Subject: [PATCH] Entity: fixed undefined variable in getTargetEntity() --- src/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/Entity.php b/src/entity/Entity.php index f1df17228..d38e571de 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -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; } /**