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 b49edceb..a717cb9b 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java @@ -1670,8 +1670,12 @@ public class BlockProperties { return true; // 0.125 } } - else if ((flags & F_PASSABLE_X4) != 0) { - if ((access.getData(bx, by, bz) & 0x4) != 0) { + else if ((flags & F_PASSABLE_X4) != 0 && (access.getData(bx, by, bz) & 0x4) != 0) { + // (Allow checking further entries.) + return true; + } + else if ((flags & F_THICK_FENCE) != 0) { + if (!collidesFence(fx, fz, dX, dZ, dT, 0.425)) { return true; } } @@ -1680,12 +1684,6 @@ public class BlockProperties { return true; } } - else if ((flags & F_THICK_FENCE) != 0) { - // TODO: Re-check if cobble fence is now like this. - if (!collidesFence(fx, fz, dX, dZ, dT, 0.425)) { - return true; - } - } else if (id == Material.CAKE_BLOCK.getId()) { if (Math.min(fy, fy + dY * dT) >= 0.4375) { return true; // 0.0625 = 0.125 / 2