diff --git a/src/Entity.php b/src/Entity.php index d2dfef3a3..0b57a8709 100644 --- a/src/Entity.php +++ b/src/Entity.php @@ -28,6 +28,7 @@ abstract class Entity extends Position{ //public $passenger = null; //public $vehicle = null; + public $chunkIndex; public $lastX; public $lastY; public $lastZ; @@ -70,7 +71,7 @@ abstract class Entity extends Position{ $this->lastUpdate = microtime(true); $this->initEntity(); } - + protected abstract function initEntity(); public abstract function spawnTo(Player $player);