wip new tasks, readme fix

This commit is contained in:
GameHerobrine 2022-12-20 13:40:51 +03:00
parent 22603a9085
commit 1b85ffd4c6
5 changed files with 68 additions and 3 deletions

View file

@ -41,6 +41,7 @@ class EntityAI
return $this->tasks[$id] ?: false; //i never saw this operator before
}
public function updateTasks(){
foreach($this->tasks as $t){
if(!$t->isStarted && $t->canBeExecuted($this)){