From 871dc98accc6052484400c15f61a484425b28c20 Mon Sep 17 00:00:00 2001 From: Brady Date: Sat, 25 Aug 2018 14:22:39 -0500 Subject: [PATCH] Change SOLID pathing types based on dimension, fixes #88 --- src/main/java/baritone/chunk/ChunkPacker.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/chunk/ChunkPacker.java b/src/main/java/baritone/chunk/ChunkPacker.java index 845c2d99..e205d7f8 100644 --- a/src/main/java/baritone/chunk/ChunkPacker.java +++ b/src/main/java/baritone/chunk/ChunkPacker.java @@ -133,7 +133,18 @@ public final class ChunkPacker implements Helper { case AVOID: return Blocks.LAVA.getDefaultState(); case SOLID: - return Blocks.OBSIDIAN.getDefaultState(); + // Dimension solid types + switch (mc.player.dimension) { + case -1: + return Blocks.NETHERRACK.getDefaultState(); + case 0: + return Blocks.STONE.getDefaultState(); + case 1: + return Blocks.END_STONE.getDefaultState(); + } + + // The fallback solid type + return Blocks.STONE.getDefaultState(); } } return null;