mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Open player's eyes for mobs
This commit is contained in:
parent
b6934024da
commit
abe7846bb9
4 changed files with 15 additions and 10 deletions
|
|
@ -55,7 +55,9 @@ class EntityAI
|
|||
}
|
||||
|
||||
public function updateTasks(){
|
||||
if(!($this->entity instanceof Entity)) return;
|
||||
if(!isset($entity) or !($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