mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
mobs will attack now, fixed division by 0(i hate php)
This commit is contained in:
parent
616c933d3d
commit
b8589c9dd4
13 changed files with 71 additions and 5 deletions
|
|
@ -47,6 +47,7 @@ class EntityAI
|
|||
}
|
||||
|
||||
public function updateTasks(){
|
||||
if(!($this->entity instanceof Entity)) return;
|
||||
foreach($this->tasks as $t){
|
||||
if(!$t->isStarted && $t->canBeExecuted($this)){
|
||||
$t->isStarted = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue