From d8f4e88e5d2d047aa9d5897cddb7b6d99616a821 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 29 Jan 2014 23:53:58 +0100 Subject: [PATCH] Fixed Entities not being despawned on restart if they were off-limits --- src/world/Entity.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/world/Entity.php b/src/world/Entity.php index 858260527..a550542db 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -144,6 +144,9 @@ class Entity extends Position{ } $this->updateLast(); $this->updatePosition(); + if($this->y < 0 and $this->class !== ENTITY_PLAYER){ + $this->close(); + } } public function updateFuse(){