From 2fb3f9a01b5d7683ff1ecd758ded43a9d4e483f1 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 5 May 2021 10:28:57 +0200 Subject: [PATCH] Optimize SWCommandUtils.numberCompleter --- SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java | 1 - 1 file changed, 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java b/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java index d4c0cc3..05f0e94 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java @@ -110,7 +110,6 @@ public class SWCommandUtils { if (varArgType != null) { length = args.length - parameters.length - subCommand.length + 1; arguments[arguments.length - 1] = Array.newInstance(varArgType, length); - if (index > args.length - 1) return arguments; }