Fixed Entities not being despawned on restart if they were off-limits

This commit is contained in:
Shoghi Cervantes 2014-01-29 23:53:58 +01:00
parent 60bc72c6cb
commit d8f4e88e5d

View File

@ -144,6 +144,9 @@ class Entity extends Position{
} }
$this->updateLast(); $this->updateLast();
$this->updatePosition(); $this->updatePosition();
if($this->y < 0 and $this->class !== ENTITY_PLAYER){
$this->close();
}
} }
public function updateFuse(){ public function updateFuse(){