SteamWar/SpigotCore
Archiviert
13
0

Optimize SWCommandUtils.numberCompleter

Dieser Commit ist enthalten in:
yoyosource 2021-05-05 10:28:57 +02:00
Ursprung a1125ae48f
Commit 2fb3f9a01b

Datei anzeigen

@ -110,7 +110,6 @@ public class SWCommandUtils {
if (varArgType != null) { if (varArgType != null) {
length = args.length - parameters.length - subCommand.length + 1; length = args.length - parameters.length - subCommand.length + 1;
arguments[arguments.length - 1] = Array.newInstance(varArgType, length); arguments[arguments.length - 1] = Array.newInstance(varArgType, length);
if (index > args.length - 1) return arguments; if (index > args.length - 1) return arguments;
} }