Fixed #364 added despawn timer for arrows [gh#364]

This commit is contained in:
Shoghi Cervantes 2013-06-10 10:37:33 +02:00
parent abcb5828ed
commit 2ef1f0c9d0

View File

@ -240,6 +240,11 @@ class Entity extends Position{
$this->close(); //Despawn timer
return false;
}
}elseif($this->class === ENTITY_OBJECT and $this->type === OBJECT_ARROW){
if(($time - $this->spawntime) >= 60){
$this->close(); //Despawn timer
return false;
}
}
if($this->class === ENTITY_MOB){