//copy and //paste now respect /toggleplace.

This commit is contained in:
TomyLobo 2011-09-02 21:01:24 +02:00
parent bc6315fb24
commit 3205904003

View File

@ -52,7 +52,7 @@ public static void copy(CommandContext args, WorldEdit we,
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 static void cut(CommandContext args, WorldEdit we,
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)),