3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Fix schematic offset when loaded to clipboard

Dieser Commit ist enthalten in:
dordsor21 2021-09-28 13:16:26 +01:00
Ursprung 56999fd1e0
Commit 848eac8623
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B
2 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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) {

Datei anzeigen

@ -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);
}
/**