mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
Small changes to reach check, redid aimbot check, improved default config
Prepared for release.
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user