mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
skeletons will attack the player
This commit is contained in:
parent
3b15c26b0c
commit
db5ad749d2
6 changed files with 163 additions and 4 deletions
|
|
@ -24,6 +24,12 @@ class EntityAI
|
|||
$this->mobController = new MobController($entity);
|
||||
}
|
||||
|
||||
|
||||
public function canSee(Entity $entity){
|
||||
//TODO caches
|
||||
return $this->entity->canSee($entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a task for entity
|
||||
* @param TaskBase $task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue