From 4eb9abe0c1426f1ddbeab6d5731c494ebcaaa60a Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 18 Jun 2017 06:37:29 +1000 Subject: [PATCH] Fix #582 --- .../java/com/sk89q/worldedit/command/ClipboardCommands.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java b/core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java index b7fd8ce4..d4e24ae9 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java @@ -152,6 +152,8 @@ public class ClipboardCommands { } session.setClipboard(null); BlockArrayClipboard clipboard = new BlockArrayClipboard(region, player.getUniqueId()); + session.setClipboard(new ClipboardHolder(clipboard, editSession.getWorldData())); + clipboard.setOrigin(session.getPlacementPosition(player)); ForwardExtentCopy copy = new ForwardExtentCopy(editSession, region, clipboard, region.getMinimumPoint()); Mask sourceMask = editSession.getSourceMask(); @@ -164,7 +166,6 @@ public class ClipboardCommands { copy.setSourceMask(mask); } Operations.completeLegacy(copy); - session.setClipboard(new ClipboardHolder(clipboard, editSession.getWorldData())); BBC.COMMAND_COPY.send(player, region.getArea()); if (!FawePlayer.wrap(player).hasPermission("fawe.tips")) BBC.TIP_PASTE.or(BBC.TIP_DOWNLOAD, BBC.TIP_ROTATE, BBC.TIP_COPYPASTE, BBC.TIP_REPLACE_MARKER, BBC.TIP_COPY_PATTERN).send(player); }