mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
no more mob pushing as it was causing a lot of memery waste, added 0.9 branch fix
This commit is contained in:
parent
a3711cfded
commit
a3fda45979
4 changed files with 3 additions and 59 deletions
|
|
@ -55,7 +55,7 @@ class EntityAI
|
|||
}
|
||||
|
||||
public function updateTasks(){
|
||||
if(!($this->entity instanceof Entity)) return;
|
||||
if(!isset($this->entity) || !($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