mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed #364 added despawn timer for arrows [gh#364]
This commit is contained in:
parent
abcb5828ed
commit
2ef1f0c9d0
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue