mob fixes related to time and headYaw

This commit is contained in:
GameHerobrine 2023-01-11 11:53:04 +03:00
parent 0a36a67f78
commit 21d0530d39
9 changed files with 35 additions and 27 deletions

View file

@ -42,7 +42,7 @@ class Utils{
public static function wrapAngleTo180_float($par0)
{
$par0 %= 360.0;
return $par0 >= 180 ? $par0 - 360 : ($par0 + 360);
return $par0 >= 180 ? $par0 - 360 : (($par0 < -180) ? ($par0 + 360) : $par0);
}
public static function getSign($v){