From 13bf0eb70579f5e9204b1b6433700ddf72765009 Mon Sep 17 00:00:00 2001 From: asofold Date: Mon, 17 Dec 2012 21:16:34 +0100 Subject: [PATCH] [Bleeding] Adjust assumeground-set-back. --- .../nocheatplus/checks/moving/SurvivalFly.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 e1ffb66a..e59b2051 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 @@ -386,9 +386,14 @@ public class SurvivalFly extends Check { } if (useWorkaround) { // !toOnGround && to.isAboveStairs()) { // Set the new setBack and reset the jumpPhase. + // TODO: Some interpolated position ? + // TODO: (Task list: sharpen when this is used, might remove isAboveStairs!) if (setBackSafe) data.setBack = from.getLocation(); - // TODO: This seems dubious ! - data.setBack.setY(Location.locToBlock(data.setBack.getY())); + else{ + // TODO: This seems dubious ! + // Consider: 1.0 + ? or max(from.getY(), 1.0 + ...) ? + data.setBack.setY(Location.locToBlock(data.setBack.getY())); + } // data.ground ? // ? set jumpphase to height / 0.15 ? data.sfJumpPhase = 0;