]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/client/commands/Arguments.java
Rework settings/config command
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / client / commands / Arguments.java
index 72c3ca1ebe135f2c7bc69207954ba20d2c509606..5a71d2fee3739519161c65aa8cdffb390365c29e 100644 (file)
@@ -36,7 +36,7 @@ public class Arguments {
     }
 
     public static StringArgumentType string() {
-        return StringArgumentType.greedyString();
+        return StringArgumentType.string();
     }
 
     public static BoolArgumentType bool() {
@@ -67,11 +67,10 @@ public class Arguments {
         return getArgumentValueOrDefault(context, name, BoolArgumentType::getBool, () -> false);
     }
 
-
-    public static <T> T getArgumentValueOrDefault(CommandContext<CommandSource> context,
-                                                  String name,
-                                                  ArgumentFetcher<T> getValue,
-                                                  Supplier<T> defaultValue) throws CommandSyntaxException {
+    private static <T> T getArgumentValueOrDefault(CommandContext<CommandSource> context,
+                                                   String name,
+                                                   ArgumentFetcher<T> getValue,
+                                                   Supplier<T> defaultValue) throws CommandSyntaxException {
         try {
             return getValue.get(context, name);
         } catch (IllegalArgumentException exception) {