From 2ef1f0c9d0629ea9a1090e3560f27fb7d94fbc15 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 10 Jun 2013 10:37:33 +0200 Subject: [PATCH] Fixed #364 added despawn timer for arrows [gh#364] --- src/world/Entity.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/world/Entity.php b/src/world/Entity.php index 3f2b77ac6..8562e7693 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -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){