Permalink
Browse files

Apply transforms to vectors in //paste -s.

  • Loading branch information...
wizjany authored and DarkArc committed Jun 29, 2016
1 parent 2a28c1a commit 1d6acfa853869643ee4432cc836cc2a47d768af7
Showing with 2 additions and 2 deletions.
  1. +2 −2 worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java
@@ -159,8 +159,8 @@ public void paste(Player player, LocalSession session, EditSession editSession,
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();

0 comments on commit 1d6acfa

Please sign in to comment.