armor rewrite

This commit is contained in:
GameHerobrine 2023-01-23 17:39:57 +03:00
parent 45b36cb034
commit bae0d4618e
34 changed files with 143 additions and 67 deletions

View file

@ -47,7 +47,7 @@ class EntityAI
}
public function updateTasks(){
if(!($this->entity instanceof Entity)) return;
if(!($this->entity instanceof Entity)) return;
foreach($this->tasks as $t){
if(!$t->isStarted && $t->canBeExecuted($this)){
$t->isStarted = true;