mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 20:58:34 +00:00
Fixed #364 added despawn timer for arrows [gh#364]
This commit is contained in:
parent
abcb5828ed
commit
2ef1f0c9d0
@ -240,6 +240,11 @@ class Entity extends Position{
|
|||||||
$this->close(); //Despawn timer
|
$this->close(); //Despawn timer
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}elseif($this->class === ENTITY_OBJECT and $this->type === OBJECT_ARROW){
|
||||||
|
if(($time - $this->spawntime) >= 60){
|
||||||
|
$this->close(); //Despawn timer
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->class === ENTITY_MOB){
|
if($this->class === ENTITY_MOB){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user