From 3d98c7667d389038496aee5bb96d34b9dcae9df9 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 29 Jan 2011 12:03:50 -0800 Subject: [PATCH] Added support for //stack [-a] to not stack air. --- src/com/sk89q/worldedit/commands/RegionCommands.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/sk89q/worldedit/commands/RegionCommands.java b/src/com/sk89q/worldedit/commands/RegionCommands.java index 074472a96..b6757c028 100644 --- a/src/com/sk89q/worldedit/commands/RegionCommands.java +++ b/src/com/sk89q/worldedit/commands/RegionCommands.java @@ -174,7 +174,7 @@ public class RegionCommands { @Command( aliases = {"/move"}, - usage = "[count] [direction] [leave-id] ", + usage = "[count] [direction] [leave-id]", desc = "Move the contents of the selection", min = 0, max = 3 @@ -204,7 +204,8 @@ public class RegionCommands { @Command( aliases = {"/stack"}, - usage = "[count] [direction] ", + usage = "[count] [direction]", + flags = "a", desc = "Repeat the contents of the selection", min = 0, max = 2 @@ -219,7 +220,7 @@ public class RegionCommands { args.argsLength() > 1 ? args.getString(1).toLowerCase() : "me"); int affected = editSession.stackCuboidRegion(session.getRegion(), - dir, count, true); + dir, count, !args.hasFlag('a')); player.print(affected + " blocks changed. Undo with //undo"); } }