diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil113.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil113.java index 0c8e493c..8be4ecb3 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil113.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil113.java @@ -194,6 +194,7 @@ public int getSectionY() { } public BlockState getBlockState(int x, int y, int z) { + if (palette.length == 1) return palette[0]; if (blocks.length == 0) return BlockState.AIR; x &= 0xF; y &= 0xF; z &= 0xF; // Math.floorMod(pos.getX(), 16) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil115.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil115.java index 5c7c95c5..23e358ca 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil115.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil115.java @@ -196,6 +196,7 @@ public int getSectionY() { } public BlockState getBlockState(int x, int y, int z) { + if (palette.length == 1) return palette[0]; if (blocks.length == 0) return BlockState.AIR; x &= 0xF; y &= 0xF; z &= 0xF; // Math.floorMod(pos.getX(), 16) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil116.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil116.java index e9c7c2fc..9d7ed847 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil116.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil116.java @@ -230,8 +230,8 @@ public int getSectionY() { } public BlockState getBlockState(int x, int y, int z) { - if (blocks.length == 0) return BlockState.AIR; if (palette.length == 1) return palette[0]; + if (blocks.length == 0) return BlockState.AIR; x &= 0xF; y &= 0xF; z &= 0xF; // Math.floorMod(pos.getX(), 16) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil118.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil118.java index dca4103a..4da6a48e 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil118.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/ChunkAnvil118.java @@ -231,8 +231,8 @@ public int getSectionY() { } public BlockState getBlockState(int x, int y, int z) { - if (blocks.length == 0) return BlockState.AIR; if (blockPalette.length == 1) return blockPalette[0]; + if (blocks.length == 0) return BlockState.AIR; x &= 0xF; y &= 0xF; z &= 0xF; // Math.floorMod(pos.getX(), 16)