diff --git a/StevenDimDoors/mod_pocketDim/schematic/Schematic.java b/StevenDimDoors/mod_pocketDim/schematic/Schematic.java index c81da44f..4c6eee4c 100644 --- a/StevenDimDoors/mod_pocketDim/schematic/Schematic.java +++ b/StevenDimDoors/mod_pocketDim/schematic/Schematic.java @@ -314,7 +314,7 @@ public class Schematic { schematicTag.setString("Materials", "Alpha"); byte[] lowBits = new byte[blocks.length]; - byte[] highBits = new byte[(blocks.length >> 1) + 1]; + byte[] highBits = new byte[(blocks.length >> 1) + (blocks.length & 1)]; boolean hasExtendedIDs = encodeBlockIDs(blocks, lowBits, highBits); schematicTag.setByteArray("Blocks", lowBits);