Replaced the "please report this" message in the legacy schematic loader

(cherry picked from commit be30a94be5aedc9e365491372fb80d2ea98ff368)
This commit is contained in:
Matthew Miller 2020-02-16 02:49:04 -05:00 committed by MattBDev
parent 0bf0848758
commit c566bb8333

View File

@ -208,9 +208,6 @@ public class MCEditSchematicReader extends NBTSchematicReader {
}
}
}
if (values.isEmpty()) {
t = null;
}
if (values.isEmpty()) {
t = null;
} else {
@ -248,8 +245,13 @@ public class MCEditSchematicReader extends NBTSchematicReader {
clipboard.setBlock(region.getMinimumPoint().add(pt), state);
}
} else {
log.warn("Unknown block when pasting schematic: "
+ blocks[index] + ":" + blockData[index] + ". Please report this issue.");
short block = blocks[index];
byte data = blockData[index];
int combined = block << 8 | data;
if (unknownBlocks.add(combined)) {
log.warn("Unknown block when loading schematic: "
+ block + ":" + data + ". This is most likely a bad schematic.");
}
}
} catch (WorldEditException ignored) { // BlockArrayClipboard won't throw this
}