Update SpongeSchematicReader.java

Dieser Commit ist enthalten in:
Jesse Boyd 2019-11-11 19:56:55 +00:00
Ursprung 19a7c54341
Commit 751e6a5dd4
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -220,7 +220,8 @@ public class SpongeSchematicReader extends NBTSchematicReader {
BlockVector3 dimensions = BlockVector3.at(width, height, length); BlockVector3 dimensions = BlockVector3.at(width, height, length);
BlockVector3 origin = min; BlockVector3 origin = min;
if (offsetX != Integer.MIN_VALUE && offsetY != Integer.MIN_VALUE && offsetZ != Integer.MIN_VALUE) { if (offsetX != Integer.MIN_VALUE && offsetY != Integer.MIN_VALUE && offsetZ != Integer.MIN_VALUE) {
origin = origin.subtract(BlockVector3.at(offsetX, offsetY, offsetZ)); // origin = origin.subtract(BlockVector3.at(offsetX, offsetY, offsetZ));
origin = BlockVector3.at(offsetX, offsetY, offsetZ);
} }
Clipboard clipboard = createOutput.apply(dimensions); Clipboard clipboard = createOutput.apply(dimensions);
@ -339,7 +340,6 @@ public class SpongeSchematicReader extends NBTSchematicReader {
} }
} }
} }
clipboard.setOrigin(origin); clipboard.setOrigin(origin);
return clipboard; return clipboard;
} }