mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-07-01 02:08:27 +00:00
Added new Aim check and utils
- Fixed TickTimer not functioning - Fixed generalCancel always cancelling - Removed debug from places that I am not currently in need of debugging - Attempting to fix login error when reloading when injecting packethandler - Added sensitivity to playerInfo command - Fixed runaway buffer fp on Fly (A)
This commit is contained in:
@@ -26,6 +26,13 @@ public class MathUtils {
|
||||
return playerMoved(from.toVector(), to.toVector());
|
||||
}
|
||||
|
||||
public static float gcdSmall(float current, float previous) {
|
||||
if(current < previous) return gcdSmall(Math.abs(previous), Math.abs(current));
|
||||
//The larger number has to be first.
|
||||
return (Math.abs(previous) <= 0.001f) ? current : gcdSmall(previous,
|
||||
current - (float)Math.floor(current / previous) * previous);
|
||||
}
|
||||
|
||||
public static double getDistanceWithoutRoot(KLocation one, KLocation two) {
|
||||
double deltaX = one.x - two.x, deltaY = one.y - two.y, deltaZ = one.z - two.z;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user