mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
fixed crash when shooting an arrow
This commit is contained in:
parent
0f43decef5
commit
7ebb5a4a63
3 changed files with 2 additions and 3 deletions
|
|
@ -39,7 +39,6 @@ class TaskEatTileGoal extends TaskBase
|
|||
return ($idm[0] === TALL_GRASS && $idm[1] === 1) || $idb === GRASS;
|
||||
}
|
||||
return false;
|
||||
//this.theEntity.getRNG().nextInt(this.theEntity.isChild() ? 50 : 1000) != 0
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ class TaskRandomWalk extends TaskBase
|
|||
$this->reset();
|
||||
return false; //TODO Better way: block movement
|
||||
}
|
||||
|
||||
--$this->selfCounter;
|
||||
$ai->mobController->setMovingOffset($this->x, 0, $this->z, $this->speedMultiplier);
|
||||
//TODO fix $ai->mobController->moveNonInstant($this->x, 0, $this->z);
|
||||
}
|
||||
|
||||
public function canBeExecuted(EntityAI $ai)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue