mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix schematic offset when loaded to clipboard
This commit is contained in:
parent
56999fd1e0
commit
848eac8623
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user