mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Fixed #364 added despawn timer for arrows [gh#364]
This commit is contained in:
@@ -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){
|
||||
|
Reference in New Issue
Block a user