From ed4b551c0887ff154e98353940b6cb1a6759e011 Mon Sep 17 00:00:00 2001 From: asofold Date: Fri, 1 Feb 2013 16:13:19 +0100 Subject: [PATCH] Balance maxphase violation better with default config. --- .../fr/neatmonster/nocheatplus/checks/moving/SurvivalFly.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/SurvivalFly.java b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/SurvivalFly.java index 7ca725eb..7e7cbc3f 100644 --- a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/SurvivalFly.java +++ b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/SurvivalFly.java @@ -298,7 +298,7 @@ public class SurvivalFly extends Check { else if (!data.sfDirty){ // Violation (Too high jumping or step). tags.add("maxphase"); - vDistanceAboveLimit = Math.max(vDistanceAboveLimit, 1.0); + vDistanceAboveLimit = Math.max(vDistanceAboveLimit, Math.max(yDistance, 0.5)); } }