From 6c71e6046b9f547cd2e025e3dbbd93891c2e68eb Mon Sep 17 00:00:00 2001 From: sk89q Date: Thu, 4 Nov 2010 23:51:42 -0700 Subject: [PATCH] Made the argument order for //contact and //expand consistent with the other commands. --- src/WorldEditController.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/WorldEditController.java b/src/WorldEditController.java index 9dfcdda4a..efe0b7832 100644 --- a/src/WorldEditController.java +++ b/src/WorldEditController.java @@ -834,13 +834,11 @@ public class WorldEditController { } else if (split[0].equalsIgnoreCase("//expand")) { checkArgs(split, 1, 2, split[0]); Vector dir; - int change; + int change = Integer.parseInt(split[1]); if (split.length == 3) { - dir = getDirection(player, split[1].toLowerCase()); - change = Integer.parseInt(split[2]); + dir = getDirection(player, split[2].toLowerCase()); } else { dir = getDirection(player, "me"); - change = Integer.parseInt(split[1]); } Region region = session.getRegion(); @@ -856,13 +854,11 @@ public class WorldEditController { } else if (split[0].equalsIgnoreCase("//contract")) { checkArgs(split, 1, 2, split[0]); Vector dir; - int change; + int change = Integer.parseInt(split[1]); if (split.length == 3) { - dir = getDirection(player, split[1].toLowerCase()); - change = Integer.parseInt(split[2]); + dir = getDirection(player, split[2].toLowerCase()); } else { dir = getDirection(player, "me"); - change = Integer.parseInt(split[1]); } Region region = session.getRegion();