attackplayer task fix

This commit is contained in:
GameHerobrine 2024-01-31 07:14:13 +03:00
parent 0ca6becc6a
commit d0a262a3da
9 changed files with 100 additions and 262 deletions

View file

@ -104,7 +104,6 @@ class MobController
$v10 = (atan2($diffZ, $diffX) * 180 / M_PI) - 90;
$this->entity->yaw = self::limitAngle($this->entity->yaw, $v10, 30);
$this->entity->setAIMoveSpeed($this->speed * $this->entity->getSpeedModifer());
if($diffY > 0 && $diffX*$diffX + $diffZ*$diffZ < 1) $this->setJumping(true);
}
}