diff --git a/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java b/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java index 8406e05..44d69a5 100644 --- a/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java +++ b/src/main/java/com/rammelkast/anticheatreloaded/check/Backend.java @@ -221,7 +221,8 @@ public class Backend { public CheckResult checkSpider(Player player, double y) { if (y <= 0.11761 && y >= 0.11759 && !Utilities.isClimbableBlock(player.getLocation().getBlock()) && !Utilities.isClimbableBlock(player.getEyeLocation().getBlock()) - && !Utilities.isClimbableBlock(player.getLocation().clone().add(0, -0.98, 0).getBlock())) { + && !Utilities.isClimbableBlock(player.getLocation().clone().add(0, -0.98, 0).getBlock()) + && !Utilities.isNearClimbable(player)) { return new CheckResult(CheckResult.Result.FAILED, "tried to climb a non-climbable block (" + player.getLocation().getBlock().getType() + ")"); } else { @@ -235,7 +236,7 @@ public class Backend { && !isMovingExempt(player) && !justPlaced(player) && !Utilities.isNearWater(player) && !Utilities.isInWeb(player) && !player.getLocation().getBlock().getType().name().endsWith("TRAPDOOR") && !VersionUtil.isSlowFalling(player) && !Utilities - .isNearShulkerBox(player.getLocation().getBlock().getRelative(BlockFace.DOWN).getLocation())) { + .isNearShulkerBox(player.getLocation().getBlock().getRelative(BlockFace.DOWN).getLocation()) && !Utilities.isNearClimbable(player)) { if (player.getFallDistance() == 0) { if (nofallViolation.get(uuid) == null) { nofallViolation.put(uuid, 1); diff --git a/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java b/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java index 5b0807e..332be70 100644 --- a/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java +++ b/src/main/java/com/rammelkast/anticheatreloaded/util/Utilities.java @@ -529,7 +529,7 @@ public final class Utilities { * @return true if web */ public static boolean isWeb(Block block) { - return block.getType() == XMaterial.COBWEB.parseMaterial(); + return block.getType() == COB_WEB; } /** @@ -1016,6 +1016,7 @@ public final class Utilities { if (VersionUtil.isOfVersion("v1_14") || VersionUtil.isOfVersion("v1_15") || VersionUtil.isOfVersion("v1_16")) { CLIMBABLE.add(Material.SCAFFOLDING); + CLIMBABLE.add(Material.SWEET_BERRY_BUSH); } // End 1.14 objects