mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 01:29:55 +00:00
Fixed #1961
This commit is contained in:
parent
8bf36315ae
commit
764937dda4
@ -51,6 +51,10 @@ class Arrow extends Projectile{
|
|||||||
public function onUpdate(){
|
public function onUpdate(){
|
||||||
$this->entityBaseTick();
|
$this->entityBaseTick();
|
||||||
|
|
||||||
|
if($this->closed !== false){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$this->motionY -= $this->gravity;
|
$this->motionY -= $this->gravity;
|
||||||
|
|
||||||
$this->inBlock = $this->checkObstruction($this->x, ($this->boundingBox->minY + $this->boundingBox->maxY) / 2, $this->z);
|
$this->inBlock = $this->checkObstruction($this->x, ($this->boundingBox->minY + $this->boundingBox->maxY) / 2, $this->z);
|
||||||
|
@ -68,6 +68,10 @@ class DroppedItem extends Entity{
|
|||||||
public function onUpdate(){
|
public function onUpdate(){
|
||||||
$this->entityBaseTick();
|
$this->entityBaseTick();
|
||||||
|
|
||||||
|
if($this->closed !== false){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if($this->pickupDelay > 0 and $this->pickupDelay < 32767){ //Infinite delay
|
if($this->pickupDelay > 0 and $this->pickupDelay < 32767){ //Infinite delay
|
||||||
--$this->pickupDelay;
|
--$this->pickupDelay;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user