mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Fix repeated argument in CleintCommands.
This commit is contained in:
1 parent
c8df5b832e
commit
1a6743331b
1 file changed
+4
-3
@@ -43,9 +43,10 @@ public class ClientCommandHandler extends CommandHandler
|
||||
message = message.substring(1);
|
||||
}
|
||||
|
||||
String[] args = message.split(" ");
|
||||
String commandName = args[0];
|
||||
System.arraycopy(args, 1, args, 0, args.length - 1);
|
||||
String[] temp = message.split(" ");
|
||||
String[] args = new String[temp.length - 1];
|
||||
String commandName = temp[0];
|
||||
System.arraycopy(temp, 1, args, 0, args.length);
|
||||
ICommand icommand = (ICommand) getCommands().get(commandName);
|
||||
|
||||
try
|
||||
|
||||
Reference in new issue
Block a user