From 19eedecdafea734628d0e2c48c643c0eba4ac2a2 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Fri, 16 Sep 2011 02:16:11 +0200 Subject: [PATCH] Re-re-introduced a small optimization in the flag parser. --- .../java/com/sk89q/minecraft/util/commands/CommandContext.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/sk89q/minecraft/util/commands/CommandContext.java b/src/main/java/com/sk89q/minecraft/util/commands/CommandContext.java index e8f712d18..d4b50bf44 100644 --- a/src/main/java/com/sk89q/minecraft/util/commands/CommandContext.java +++ b/src/main/java/com/sk89q/minecraft/util/commands/CommandContext.java @@ -86,6 +86,9 @@ public class CommandContext { for (int i = 1; i < args.length; ++i) { final String arg = args[i]; + if (arg.charAt(0) != '-') { + continue; + } if (arg.equals("--")) { args = removePortionOfArray(args, i, i, null);