From c83d622ceb635bec8ad116b128913c96aa14b569 Mon Sep 17 00:00:00 2001 From: SenseiKiwi Date: Wed, 31 Jul 2013 16:56:42 -0400 Subject: [PATCH] Fixed MCedit 1.7.1 Support Made a minor change to Schematic so that MCedit will load our schematics properly. --- StevenDimDoors/mod_pocketDim/schematic/Schematic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);