From 2ccda8577210989ec31c1f1730446b868b904f99 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 13 May 2020 22:36:08 +0100 Subject: [PATCH] Fix #468 That's not how it works --- .../extent/clipboard/io/FastSchematicReader.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicReader.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicReader.java index 0263e334a..64cdf882e 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicReader.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicReader.java @@ -224,17 +224,11 @@ public class FastSchematicReader extends NBTSchematicReader { if (palette.length < 128) { for (int index = 0; index < volume; index++) { int ordinal = fis.read(); - if (ordinal == 0) { - ordinal = 1; - } linear.setBlock(index, getBlockState(ordinal)); } } else { for (int index = 0; index < volume; index++) { int ordinal = fis.readVarInt(); - if (ordinal == 0) { - ordinal = 1; - } linear.setBlock(index, getBlockState(ordinal)); } } @@ -244,9 +238,6 @@ public class FastSchematicReader extends NBTSchematicReader { for (int z = 0; z < length; z++) { for (int x = 0; x < width; x++) { int ordinal = fis.read(); - if (ordinal == 0) { - ordinal = 1; - } clipboard.setBlock(x, y, z, getBlockState(ordinal)); } } @@ -256,9 +247,6 @@ public class FastSchematicReader extends NBTSchematicReader { for (int z = 0; z < length; z++) { for (int x = 0; x < width; x++) { int ordinal = fis.readVarInt(); - if (ordinal == 0) { - ordinal = 1; - } clipboard.setBlock(x, y, z, getBlockState(ordinal)); } }