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

@ -51,6 +51,10 @@ class Arrow extends Projectile{
public function onUpdate(){
$this->entityBaseTick();
if($this->closed !== false){
return false;
}
$this->motionY -= $this->gravity;
$this->inBlock = $this->checkObstruction($this->x, ($this->boundingBox->minY + $this->boundingBox->maxY) / 2, $this->z);

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