mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Fix riptide false, small change to lag determination
This commit is contained in:
1 parent
a6a39e352a
commit
7caf7376ba
2 files changed
+5
-2
No files matched your search
@@ -32,6 +32,7 @@ import com.rammelkast.anticheatreloaded.config.providers.Checks;
|
|||||||
import com.rammelkast.anticheatreloaded.util.MovementManager;
|
import com.rammelkast.anticheatreloaded.util.MovementManager;
|
||||||
import com.rammelkast.anticheatreloaded.util.User;
|
import com.rammelkast.anticheatreloaded.util.User;
|
||||||
import com.rammelkast.anticheatreloaded.util.Utilities;
|
import com.rammelkast.anticheatreloaded.util.Utilities;
|
||||||
|
import com.rammelkast.anticheatreloaded.util.VersionUtil;
|
||||||
|
|
||||||
public class WaterWalkCheck {
|
public class WaterWalkCheck {
|
||||||
|
|
||||||
@@ -42,7 +43,8 @@ public class WaterWalkCheck {
|
|||||||
User user = AntiCheatReloaded.getManager().getUserManager().getUser(uuid);
|
User user = AntiCheatReloaded.getManager().getUserManager().getUser(uuid);
|
||||||
MovementManager movementManager = user.getMovementManager();
|
MovementManager movementManager = user.getMovementManager();
|
||||||
|
|
||||||
if (movementManager.distanceXZ <= 0 || player.getVehicle() != null || Utilities.isOnLilyPad(player))
|
if (movementManager.distanceXZ <= 0 || player.getVehicle() != null || Utilities.isOnLilyPad(player)
|
||||||
|
|| VersionUtil.isRiptiding(player))
|
||||||
return PASS;
|
return PASS;
|
||||||
|
|
||||||
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
||||||
|
|||||||
@@ -458,7 +458,8 @@ public class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isLagging() {
|
public boolean isLagging() {
|
||||||
return Math.abs(this.ping - this.lastPing) > config.getMagic().LAG_DETERMINATION();
|
return Math.abs(this.ping - this.lastPing) > config.getMagic().LAG_DETERMINATION()
|
||||||
|
&& this.ping > config.getMagic().LAG_DETERMINATION();
|
||||||
}
|
}
|
||||||
|
|
||||||
public MovementManager getMovementManager() {
|
public MovementManager getMovementManager() {
|
||||||
|
|||||||
Reference in new issue
Block a user