mobs will spawn only in loaded chunks, entities in unloaded chunks will automatically *rip*

This commit is contained in:
GameHerobrine 2023-07-04 03:57:40 +03:00
parent bc979c2853
commit 8d1e76f84d
7 changed files with 21 additions and 12 deletions

View file

@ -41,7 +41,7 @@ class Utils{
public static function wrapAngleTo360($angle)
{
$angle %= 360;
$angle = (int)$angle % 360;
return $angle < 0 ? $angle + 360 : $angle;
}