mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed spider and pigman ai
This commit is contained in:
parent
8b47cf1b66
commit
c2e53d91c2
4 changed files with 5 additions and 6 deletions
|
|
@ -29,7 +29,8 @@ class TaskAttackPlayer extends TaskBase
|
|||
$ai->mobController->setLookPosition($ai->entity->target->x, $ai->entity->target->y + 0.12, $ai->entity->target->z, 10, $ai->entity->getVerticalFaceSpeed());
|
||||
|
||||
--$this->attackCounter;
|
||||
$v1 = $ai->entity->width * $ai->entity->width * 4;
|
||||
$mult = $ai->entity instanceof Spider ? 1 : 2;
|
||||
$v1 = $ai->entity->width * $ai->entity->width * $mult*$mult;
|
||||
|
||||
$e = $ai->entity;
|
||||
$t = $e->target;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue