Only add child command arguments to context if there are any
Fixes
@@ -195,9 +195,9 @@ public void parse(CommandSource source, CommandArgs args, CommandContext context
} else {
if (args.hasNext()) {
args.next();
+ context.putArg(getUntranslatedKey() + "_args", args.getRaw().substring(args.getRawPosition()));
}
- context.putArg(getUntranslatedKey() + "_args", args.getRaw().substring(args.getRawPosition()));
while (args.hasNext()) {
args.next();
}
