This commit is contained in:
Shoghi Cervantes 2014-08-24 18:08:14 +02:00
parent 8bf36315ae
commit 764937dda4
2 changed files with 8 additions and 0 deletions

View File

@ -50,6 +50,10 @@ class Arrow extends Projectile{
public function onUpdate(){
$this->entityBaseTick();
if($this->closed !== false){
return false;
}
$this->motionY -= $this->gravity;

View File

@ -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;
}