mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +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(){
|
public function update(){
|
||||||
if(self::$despawnMobs && ++$this->ticksExisted > self::$despawnTimer){
|
if(self::$despawnMobs && ++$this->ticksExisted > self::$despawnTimer){
|
||||||
$this->close();
|
$this->close();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if(!$this->dead && Entity::$allowedAI && $this->idleTime <= 0) {
|
if(!$this->dead && Entity::$allowedAI && $this->idleTime <= 0) {
|
||||||
$this->ai->updateTasks();
|
$this->ai->updateTasks();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue