From b4b427b38e38eb30838a27ef0c2e853c3e5da306 Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Sun, 16 Jun 2024 17:29:53 +0200 Subject: [PATCH] fix: offset must be inverted for origin --- .../core/extent/clipboard/io/FastSchematicReaderV3.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java index 28f44ec1e..209d62611 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java @@ -148,7 +148,7 @@ public class FastSchematicReaderV3 implements ClipboardReader { if (clipboard == null) { throw new NullPointerException("Failed to read schematic: Clipboard is null"); } - clipboard.setOrigin(this.offset); + clipboard.setOrigin(this.offset.multiply().multiply(-1)); if (clipboard instanceof SimpleClipboard simpleClipboard && !this.offset.equals(BlockVector3.ZERO)) { clipboard = new BlockArrayClipboard(simpleClipboard, this.offset); }