From 9f2f2fc6c9d2e9a852d0f471f273109077b74137 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Thu, 12 Jul 2012 16:31:07 -0700 Subject: [PATCH] Move block ids over even if there isn't an AddBlocks tag in schematics --- .../com/sk89q/worldedit/schematic/MCEditSchematicFormat.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/schematic/MCEditSchematicFormat.java b/src/main/java/com/sk89q/worldedit/schematic/MCEditSchematicFormat.java index 6b05f52ad..44abfa99f 100644 --- a/src/main/java/com/sk89q/worldedit/schematic/MCEditSchematicFormat.java +++ b/src/main/java/com/sk89q/worldedit/schematic/MCEditSchematicFormat.java @@ -119,6 +119,10 @@ public class MCEditSchematicFormat extends SchematicFormat { blocks[index] = (short) (((addBlockIds[i] << 4) & 0xF) << 8 + rawBlocks[index++]); } } + } else { + for (int i = 0; i < rawBlocks.length; ++i) { + blocks[i] = rawBlocks[i]; + } } // Need to pull out tile entities