From 320590400317b5ad8841dde2586165d78a512f72 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Fri, 2 Sep 2011 21:01:24 +0200 Subject: [PATCH] //copy and //paste now respect /toggleplace. --- .../java/com/sk89q/worldedit/commands/ClipboardCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/commands/ClipboardCommands.java b/src/main/java/com/sk89q/worldedit/commands/ClipboardCommands.java index 5933fbb4b..eb4cb3c09 100644 --- a/src/main/java/com/sk89q/worldedit/commands/ClipboardCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/ClipboardCommands.java @@ -52,7 +52,7 @@ public class ClipboardCommands { Region region = session.getSelection(player.getWorld()); Vector min = region.getMinimumPoint(); Vector max = region.getMaximumPoint(); - Vector pos = player.getBlockIn(); + Vector pos = session.getPlacementPosition(player); CuboidClipboard clipboard = new CuboidClipboard( max.subtract(min).add(new Vector(1, 1, 1)), @@ -85,7 +85,7 @@ public class ClipboardCommands { Region region = session.getSelection(player.getWorld()); Vector min = region.getMinimumPoint(); Vector max = region.getMaximumPoint(); - Vector pos = player.getBlockIn(); + Vector pos = session.getPlacementPosition(player); CuboidClipboard clipboard = new CuboidClipboard( max.subtract(min).add(new Vector(1, 1, 1)),