mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
mob fixes related to time and headYaw
This commit is contained in:
parent
0a36a67f78
commit
21d0530d39
9 changed files with 35 additions and 27 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue