From 7023fdb2af22341b52d288a686617ecf22ca5e07 Mon Sep 17 00:00:00 2001 From: asofold Date: Mon, 31 Oct 2016 22:00:52 +0100 Subject: [PATCH] Fix passable fp with 2-high ceiling. Can't judge side effects, concerning other passable like tests telling the head to be inside a block by the micro margin, while passable allows such a move now. --- .../nocheatplus/checks/moving/player/Passable.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/player/Passable.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/player/Passable.java index 287596dd..a2fd12f9 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/player/Passable.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/player/Passable.java @@ -41,10 +41,10 @@ public class Passable extends Check { // TODO: Test cases. private static boolean rt_legacy = false; // TODO: Should keep an eye on passable vs. on-ground, when checking with reduced margins. - // TODO: rt_xzFactor = 1.0; // Problems: Doors, fences. + // rt_xzFactor = 1.0; // Problems: Doors, fences. private static double rt_xzFactor = 0.98; - // TODO: Test bumping head into things. - private static double rt_heightFactor = 1.0; + // rt_heightFactor = 1.0; // Since 10.2 (at some point) passable FP with 2-high ceiling. + private static double rt_heightFactor = 0.99999999; /** * Convenience for player moving, to keep a better overview.