mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Fix #218 - compensate for y-diff on stairs
This commit is contained in:
1 parent
9389020f05
commit
78b84531bc
1 file changed
+2
-1
@@ -476,7 +476,8 @@ public class Backend {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
long i = System.currentTimeMillis() - lastYtime.get(name);
|
long i = System.currentTimeMillis() - lastYtime.get(name);
|
||||||
if ((y1 - lastYcoord.get(name)) > magic.Y_MAXDIFF && i < magic.Y_TIME) {
|
double diff = magic.Y_MAXDIFF + (Utilities.isStair(player.getLocation().add(0, -1, 0).getBlock()) ? 0.5 : 0.0);
|
||||||
|
if ((y1 - lastYcoord.get(name)) > diff && i < magic.Y_TIME) {
|
||||||
Location g = player.getLocation();
|
Location g = player.getLocation();
|
||||||
yAxisViolations.put(name, yAxisViolations.get(name) + 1);
|
yAxisViolations.put(name, yAxisViolations.get(name) + 1);
|
||||||
yAxisLastViolation.put(name, System.currentTimeMillis());
|
yAxisLastViolation.put(name, System.currentTimeMillis());
|
||||||
|
|||||||
Reference in new issue
Block a user