Fix schematic offset when loaded to clipboard

This commit is contained in:
dordsor21 2021-09-28 13:16:26 +01:00
parent 56999fd1e0
commit 848eac8623
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
2 changed files with 5 additions and 2 deletions

View File

@ -237,7 +237,10 @@ public class FastSchematicReader extends NBTSchematicReader {
inputStream.readNamedTagLazy(root);
if (version != 1 && version != 2) {
throw new IOException("This schematic version is not supported; Version: " + version + ", DataVersion: " + dataVersion + ". It's very likely your schematic has an invalid file extension, if the schematic has been created on a version lower than 1.13.2, the extension MUST be `.schematic`, elsewise the schematic can't be read properly.");
throw new IOException("This schematic version is not supported; Version: " + version
+ ", DataVersion: " + dataVersion + ". It's very likely your schematic has an invalid file extension," +
" if the schematic has been created on a version lower than 1.13.2, the extension MUST be `.schematic`," +
" elsewise the schematic can't be read properly.");
}
if (blocks != null) {

View File

@ -95,7 +95,7 @@ public class BlockArrayClipboard implements Clipboard {
shifted.shift(offset);
this.region = shifted;
this.offset = shifted.getMinimumPoint();
this.origin = parent.getOrigin();
this.origin = parent.getOrigin().add(this.offset);
}
/**