mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix #63
This commit is contained in:
1 parent
da4a61e228
commit
aa9fa9b290
3 files changed
+15
-6
No files matched your search
@@ -37,7 +37,7 @@ public class BadPacketsCheck {
|
||||
public static void runCheck(Player player, PacketEvent event) {
|
||||
Backend backend = AntiCheatReloaded.getManager().getBackend();
|
||||
if (!AntiCheatReloaded.getManager().getCheckManager().willCheck(player, CheckType.BADPACKETS)
|
||||
|| backend.isMovingExempt(player) || AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId()).isWaitingOnLevelSync()) {
|
||||
|| backend.isMovingExempt(player)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,11 @@ public class BadPacketsCheck {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO more precise checking for this
|
||||
if (AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId()).isLagging()) {
|
||||
return;
|
||||
}
|
||||
|
||||
double x = packet.getDoubles().read(0);
|
||||
double y = packet.getDoubles().read(1);
|
||||
double z = packet.getDoubles().read(2);
|
||||
|
||||
Reference in new issue
Block a user