diff --git a/src/main/java/baritone/chunk/CachedChunk.java b/src/main/java/baritone/chunk/CachedChunk.java index eb1882f8..418a015e 100644 --- a/src/main/java/baritone/chunk/CachedChunk.java +++ b/src/main/java/baritone/chunk/CachedChunk.java @@ -121,7 +121,10 @@ public final class CachedChunk implements IBlockTypeAccess { if (heightMap[internalPos] == y) { // we have this exact block, it's a surface block IBlockState state = ChunkPacker.stringToBlock(overview[internalPos]).getDefaultState(); - //System.out.println("Saying that " + x + "," + y + "," + z + " is " + state); + /*System.out.println("Saying that " + x + "," + y + "," + z + " is " + state); + if (!Minecraft.getMinecraft().world.getBlockState(new BlockPos(x + this.x * 16, y, z + this.z * 16)).getBlock().equals(state.getBlock())) { + throw new IllegalStateException("failed " + Minecraft.getMinecraft().world.getBlockState(new BlockPos(x + this.x * 16, y, z + this.z * 16)).getBlock() + " " + state.getBlock() + " " + (x + this.x * 16) + " " + y + " " + (z + this.z * 16)); + }*/ return state; } PathingBlockType type = getType(x, y, z); diff --git a/src/main/java/baritone/chunk/ChunkPacker.java b/src/main/java/baritone/chunk/ChunkPacker.java index 3cd0b415..e020e67b 100644 --- a/src/main/java/baritone/chunk/ChunkPacker.java +++ b/src/main/java/baritone/chunk/ChunkPacker.java @@ -71,7 +71,7 @@ public final class ChunkPacker implements Helper { for (int x = 0; x < 16; x++) { for (int y = 255; y >= 0; y--) { int index = CachedChunk.getPositionIndex(x, y, z); - if (!bitSet.get(index) && !bitSet.get(index + 1)) { + if (bitSet.get(index) || bitSet.get(index + 1)) { String name = blockToString(chunk.getBlockState(x, y, z).getBlock()); blockNames[z << 4 | x] = name; continue outerLoop;