diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index de9346dc9..12d8bb9d2 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -616,7 +616,7 @@ abstract class Entity extends Position implements Metadatable{ } public function getPosition(){ - return new Position($this->x, $this->y, $this->z, $this->level); + return new Position($this->x, $this->y, $this->z, $this->getLevel()); } public function collision(){