mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
ai will stop executing if entity is ded
This commit is contained in:
parent
61e44fddba
commit
695f9f1484
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ abstract class Living extends Entity implements Damageable, Pathfindable{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update(){
|
public function update(){
|
||||||
if(Entity::$allowedAI && $this->idleTime <= 0) {
|
if(!$this->dead && Entity::$allowedAI && $this->idleTime <= 0) {
|
||||||
$this->ai->updateTasks();
|
$this->ai->updateTasks();
|
||||||
}
|
}
|
||||||
if($this->onGround){
|
if($this->onGround){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue