mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Glide -> Gravity, more migration towards new config, expanded illegalinteract, fix false positives
This commit is contained in:
1 parent
2086a01f80
commit
ad618ffaf0
20 files changed
+291
-349
No files matched your search
@@ -55,7 +55,7 @@ public class MovementManager {
|
||||
public boolean bottomSolid;
|
||||
// If the current movement is up a slab or stair
|
||||
public boolean halfMovement;
|
||||
// If the player is on the ground
|
||||
// If the player is on the ground (determined clientside!)
|
||||
public boolean onGround;
|
||||
// Ticks counter for last halfMovement
|
||||
public int halfMovementHistoryCounter = 0;
|
||||
@@ -66,7 +66,10 @@ public class MovementManager {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public void handle(Player player, Location from, Location to, Distance distance) {
|
||||
this.onGround = player.isOnGround(); // TODO temp solution, can be spoofed
|
||||
// TODO as of now, we "trust" the client to send the right thing
|
||||
// This is checked for spoofing by "GroundFlight"
|
||||
// Also seems to make NoFall cheats flag for speed lmao
|
||||
this.onGround = player.isOnGround();
|
||||
|
||||
double x = distance.getXDifference();
|
||||
double z = distance.getZDifference();
|
||||
|
||||
Reference in new issue
Block a user