mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
fix
This commit is contained in:
parent
01bc7e1022
commit
dfa8e1c7e4
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ abstract class Living extends Entity implements Damageable, Pathfindable{
|
|||
public function update(){
|
||||
if(self::$despawnMobs && ++$this->ticksExisted > self::$despawnTimer){
|
||||
$this->close();
|
||||
return;
|
||||
}
|
||||
if(!$this->dead && Entity::$allowedAI && $this->idleTime <= 0) {
|
||||
$this->ai->updateTasks();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue