diff --git a/src/main/java/baritone/pathing/movement/MovementHelper.java b/src/main/java/baritone/pathing/movement/MovementHelper.java index e3ad6800e..b710d7f68 100644 --- a/src/main/java/baritone/pathing/movement/MovementHelper.java +++ b/src/main/java/baritone/pathing/movement/MovementHelper.java @@ -152,8 +152,8 @@ public interface MovementHelper extends ActionCosts, Helper { try { // A dodgy catch-all at the end, for most blocks with default behaviour this will work, however where blocks are special this will error out, and we can handle it when we have this information return Optional.of(block.isPassable(null, null)); - } catch (NullPointerException exception) { - System.out.println("Error"); + } catch (Throwable exception) { + System.out.println("The block " + state.getBlock().getLocalizedName() + " requires a special case due to the exception " + exception.getMessage()); return Optional.empty(); } } @@ -369,6 +369,10 @@ public interface MovementHelper extends ActionCosts, Helper { return Optional.empty(); } + if (block == Blocks.GLASS || block == Blocks.STAINED_GLASS) { + return TRUE; + } + if (block instanceof BlockSlab) { if (!Baritone.settings().allowWalkOnBottomSlab.value) { if (((BlockSlab) block).isDouble()) {