diff --git a/src/entity/Living.php b/src/entity/Living.php index 7298810f..c4d2515b 100644 --- a/src/entity/Living.php +++ b/src/entity/Living.php @@ -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();