We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b17f2b0 commit fe3557eCopy full SHA for fe3557e
1 file changed
src/main/java/simplexity/simplehomes/commands/CommandUtils.java
@@ -7,6 +7,7 @@
7
import simplexity.simplehomes.configs.ConfigHandler;
8
import simplexity.simplehomes.saving.SQLHandler;
9
10
+import java.util.ArrayList;
11
import java.util.Arrays;
12
import java.util.List;
13
import java.util.UUID;
@@ -59,7 +60,7 @@ public static boolean shouldOverride(String[] args) {
59
60
61
// This is going to hopefully be more useful the more flags are added
62
public static List<String> getSanitizedArgsList(String[] args){
- List<String> argsList = Arrays.asList(args);
63
+ List<String> argsList = new ArrayList<>(List.of(args));
64
argsList.removeIf(OVERRIDE_ARGS::contains);
65
return argsList;
66
}
0 commit comments