From 0a748c4290bee0f91b69bc8e1ae6ad649a8e0071 Mon Sep 17 00:00:00 2001 From: asofold Date: Sun, 8 Sep 2013 01:30:33 +0200 Subject: [PATCH] Important fix for passable. Astonishing. --- .../neatmonster/nocheatplus/utilities/BlockProperties.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java index 23020695..c1b96f77 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java @@ -2371,7 +2371,7 @@ public class BlockProperties { // Simplified check: Only collision of bounds of the full move is checked. final double minX, maxX; - if (dX < 0){ + if (dX < 0.0){ minX = dX * dT + oX + blockX; maxX = oX + blockX; } @@ -2380,7 +2380,7 @@ public class BlockProperties { minX = oX + blockX; } final double minY, maxY; - if (dY < 0){ + if (dY < 0.0){ minY = dY * dT + oY + blockY; maxY = oY + blockY; } @@ -2389,7 +2389,7 @@ public class BlockProperties { minY = oY + blockY; } final double minZ, maxZ; - if (dX < 0){ + if (dZ < 0.0){ minZ = dZ * dT + oZ + blockZ; maxZ = oZ + blockZ; }