diff --git a/src/pocketmine/entity/Arrow.php b/src/pocketmine/entity/Arrow.php index 9b35891fb..cf0288e1b 100644 --- a/src/pocketmine/entity/Arrow.php +++ b/src/pocketmine/entity/Arrow.php @@ -50,6 +50,10 @@ class Arrow extends Projectile{ public function onUpdate(){ $this->entityBaseTick(); + + if($this->closed !== false){ + return false; + } $this->motionY -= $this->gravity; diff --git a/src/pocketmine/entity/DroppedItem.php b/src/pocketmine/entity/DroppedItem.php index 5033d00af..2e7d8d424 100644 --- a/src/pocketmine/entity/DroppedItem.php +++ b/src/pocketmine/entity/DroppedItem.php @@ -68,6 +68,10 @@ class DroppedItem extends Entity{ public function onUpdate(){ $this->entityBaseTick(); + if($this->closed !== false){ + return false; + } + if($this->pickupDelay > 0 and $this->pickupDelay < 32767){ //Infinite delay --$this->pickupDelay; }