mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fixed #1961
This commit is contained in:
parent
8bf36315ae
commit
764937dda4
@ -50,6 +50,10 @@ class Arrow extends Projectile{
|
||||
|
||||
public function onUpdate(){
|
||||
$this->entityBaseTick();
|
||||
|
||||
if($this->closed !== false){
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->motionY -= $this->gravity;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user