From 28d45870e2490481713bd941dfc9f7bc211b8b15 Mon Sep 17 00:00:00 2001 From: wizjany Date: Wed, 29 Jun 2016 00:38:11 -0400 Subject: [PATCH] Apply transforms to vectors in //paste -s. --- .../java/com/sk89q/worldedit/command/ClipboardCommands.java | 4 ++-- 1 file changed, 2 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 d9cabddcc..ab6a294cd 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 @@ -159,8 +159,8 @@ public class ClipboardCommands { if (selectPasted) { Vector clipboardOffset = clipboard.getRegion().getMinimumPoint().subtract(clipboard.getOrigin()); - Vector realTo = to.add(clipboardOffset); - Vector max = realTo.add(region.getMaximumPoint().subtract(region.getMinimumPoint())); + Vector realTo = to.add(holder.getTransform().apply(clipboardOffset)); + Vector max = realTo.add(holder.getTransform().apply(region.getMaximumPoint().subtract(region.getMinimumPoint()))); RegionSelector selector = new CuboidRegionSelector(player.getWorld(), realTo, max); session.setRegionSelector(player.getWorld(), selector); selector.learnChanges();