mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
wip new tasks, readme fix
This commit is contained in:
parent
22603a9085
commit
1b85ffd4c6
5 changed files with 68 additions and 3 deletions
|
|
@ -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)){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue