mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +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
|
||||
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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user