From 7521f0169fd94466e0a87c9937fd686f6c87c694 Mon Sep 17 00:00:00 2001 From: asofold Date: Tue, 6 Jan 2015 00:48:41 +0100 Subject: [PATCH] Prevent too easy abuse of bunny-hop delay resetting. --- .../fr/neatmonster/nocheatplus/checks/moving/SurvivalFly.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/SurvivalFly.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/SurvivalFly.java index 8a4099c1..b6886f47 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/SurvivalFly.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/SurvivalFly.java @@ -476,8 +476,9 @@ public class SurvivalFly extends Check { // The player has moved onto ground. if (toOnGround) { // Reset bunny-hop-delay. - if (data.bunnyhopDelay > 0 && yDistance > 0.0 && to.getY() > data.getSetBackY() && !from.isResetCond() && !to.isResetCond()) { + if (data.bunnyhopDelay > 0 && yDistance > 0.0 && to.getY() > data.getSetBackY() + 0.12 && !from.isResetCond() && !to.isResetCond()) { data.bunnyhopDelay = 0; + tags.add("resetbunny"); } // TODO: Experimental: reset vertical velocity. if (data.verticalVelocityUsed > cc.velocityGraceTicks && yDistance < 0) {