mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-09 16:21:49 +01:00
Attempt to fix step hack detection in a simple way.
This commit is contained in:
parent
77802bd3e5
commit
c759d24e7f
@ -192,7 +192,7 @@ public class SurvivalFly extends Check {
|
||||
double vDistanceAboveLimit = to.getY() - data.setBack.getY() - vAllowedDistance;
|
||||
|
||||
// Step can also be blocked.
|
||||
if (from.isOnGround() && to.isOnGround() && to.getY() - from.getY() == 1D && vDistanceAboveLimit <= 0D
|
||||
if (from.isOnGround() && to.isOnGround() && Math.abs(to.getY() - from.getY() - 1D) <= 0.1 && vDistanceAboveLimit <= 0D
|
||||
&& !player.hasPermission(Permissions.MOVING_SURVIVALFLY_STEP))
|
||||
vDistanceAboveLimit = 1D;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user