Small changes to reach check, redid aimbot check, improved default config

Prepared for release.
This commit is contained in:
Rammelkast committed 2022-01-01 21:53:16 +01:00
1 parent 67e6f0df62
commit 5c85b8717b
5 files changed
+26 -37

No files matched your search

@@ -766,22 +766,15 @@ public final class Utilities {
/**
* Calculates the greatest common divider
* @param a value a
* @param b value b
* @return the greatest common divider of a and b
*
* @param current - The current value
* @param previous - The previous value
* @return - The GCD of those two values
*/
public static double computeGcd(final double a, final double b) {
if (a < b) {
return computeGcd(b, a);
}
public static long getGcd(final long current, final long previous) {
return (previous <= 16384L) ? current : getGcd(previous, current % previous);
}
if (Math.abs(b) < 0.001) {
return a;
} else {
return computeGcd(b, a - Math.floor(a / b) * b);
}
}
public static boolean isCollisionPoint(final Location location, final Predicate<Material> predicate) {
final ArrayList<Material> materials = new ArrayList<>();
for (double x = -0.3; x <= 0.3; x += 0.3) {