mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Found possible 1.8.8 compat issue with BadPackets
This commit is contained in:
1 parent
a7419e3968
commit
0288a9734a
1 file changed
+4
-2
@@ -67,8 +67,10 @@ public class BadPacketsCheck {
|
||||
if (distance > maxDistance) {
|
||||
flag(player, event, "moved too far between packets (distance=" + new BigDecimal(distance).setScale(1, RoundingMode.HALF_UP) + ", max=" + maxDistance + ")");
|
||||
return;
|
||||
} else if (distance < 1E-9 && !hasNewLocation) {
|
||||
flag(player, event, "sent the same packet twice");
|
||||
} else if (distance < 1E-10 && !hasNewLocation) {
|
||||
// TODO this gives false positives when teleporting
|
||||
// Only found this in 1.8.8 though
|
||||
//flag(player, event, "sent the same packet twice");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user