mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Replaced broken reach check, continued work on movement check update
This commit is contained in:
1 parent
636f94b408
commit
20635a2acb
15 files changed
+295
-203
No files matched your search
@@ -166,12 +166,9 @@ public class Backend {
|
||||
GlideCheck.LAST_MOTION_Y.remove(uuid);
|
||||
GlideCheck.LAST_FALL_DISTANCE.remove(uuid);
|
||||
GlideCheck.VIOLATIONS.remove(uuid);
|
||||
SpeedCheck.JUMPBEHAVIOUR_VIOLATIONS.remove(uuid);
|
||||
ElytraCheck.JUMP_Y_VALUE.remove(uuid);
|
||||
KillAuraCheck.ANGLE_FLAGS.remove(uuid);
|
||||
FlightCheck.MOVING_EXEMPT.remove(uuid);
|
||||
FlightCheck.ASCENSION_COUNT.remove(uuid);
|
||||
FlightCheck.BLOCKS_OVER_FLIGHT.remove(uuid);
|
||||
YAxisCheck.Y_AXIS_VIOLATIONS.remove(uuid);
|
||||
YAxisCheck.LAST_Y_AXIS_VIOLATION.remove(uuid);
|
||||
YAxisCheck.LAST_Y_COORD_CACHE.remove(uuid);
|
||||
@@ -252,18 +249,6 @@ public class Backend {
|
||||
}
|
||||
}
|
||||
|
||||
public CheckResult checkLongReachDamage(Player player, double x, double y, double z) {
|
||||
String string = "reached too far for an entity";
|
||||
double i = x >= magic.ENTITY_MAX_DISTANCE() ? x
|
||||
: y > magic.ENTITY_MAX_DISTANCE() ? y : z > magic.ENTITY_MAX_DISTANCE() ? z : -1;
|
||||
if (i != -1) {
|
||||
return new CheckResult(CheckResult.Result.FAILED,
|
||||
string + " (distance=" + i + ", max=" + magic.ENTITY_MAX_DISTANCE() + ")");
|
||||
} else {
|
||||
return PASS;
|
||||
}
|
||||
}
|
||||
|
||||
public CheckResult checkSpider(Player player, double y) {
|
||||
if (y <= magic.LADDER_Y_MAX() && y >= magic.LADDER_Y_MIN()
|
||||
&& !Utilities.isClimbableBlock(player.getLocation().getBlock())
|
||||
@@ -785,7 +770,6 @@ public class Backend {
|
||||
|
||||
/* Data for fly/speed should be reset */
|
||||
nofallViolation.remove(player.getUniqueId());
|
||||
FlightCheck.BLOCKS_OVER_FLIGHT.remove(player.getUniqueId());
|
||||
YAxisCheck.Y_AXIS_VIOLATIONS.remove(player.getUniqueId());
|
||||
YAxisCheck.LAST_Y_AXIS_VIOLATION.remove(player.getUniqueId());
|
||||
YAxisCheck.LAST_Y_COORD_CACHE.remove(player.getUniqueId());
|
||||
|
||||
Reference in new issue
Block a user