From abaa98d2a96f8cc4278e37395c1a1718d70590af Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 19 Sep 2021 20:47:21 +0100 Subject: [PATCH] Fix #403 --- .../java/com/sk89q/worldedit/command/ClipboardCommands.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java index 2b8bf64cd..d594b7686 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java @@ -122,7 +122,8 @@ public class ClipboardCommands { @Switch(name = 'b', desc = "Also copy biomes") boolean copyBiomes, //FAWE start - @Switch(name = 'c', desc = "Set the origin of the clipboard to the center of the copied region") + @Switch(name = 'c', desc = "Set the origin of the clipboard to the center of the region, at the region's lowest " + + "y-level.") boolean centerClipboard, @ArgFlag(name = 'm', desc = "Set the include mask, non-matching blocks become air", def = "") Mask mask @@ -140,7 +141,8 @@ public class ClipboardCommands { session.setClipboard(null); Clipboard clipboard = new BlockArrayClipboard(region, actor.getUniqueId()); - clipboard.setOrigin(centerClipboard ? region.getCenter().toBlockPoint() : session.getPlacementPosition(actor)); + clipboard.setOrigin(centerClipboard ? region.getCenter().toBlockPoint().withY(region.getMinimumY()) : + session.getPlacementPosition(actor)); ForwardExtentCopy copy = new ForwardExtentCopy(editSession, region, clipboard, region.getMinimumPoint()); copy.setCopyingEntities(copyEntities); copy.setCopyingBiomes(copyBiomes);