From 7a44e8041f6eeac60cee003c8b98f9e0e29e2430 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 19 Feb 2014 15:37:59 +0100 Subject: [PATCH] Entity $chunkIndex --- src/Entity.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);