Skip to content

Commit

Permalink
Add boolean argument type back to default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
xpple committed Aug 24, 2023
1 parent 6028ea8 commit dad6082
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/dev/xpple/betterconfig/impl/ModConfigImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
public class ModConfigImpl implements ModConfig {

private static final Map<Class<?>, Function<CommandRegistryAccess, ArgumentType<?>>> defaultArguments = ImmutableMap.<Class<?>, Function<CommandRegistryAccess, ArgumentType<?>>>builder()
.put(boolean.class, registryAccess -> BoolArgumentType.bool())
.put(Boolean.class, registryAccess -> BoolArgumentType.bool())
.put(double.class, registryAccess -> DoubleArgumentType.doubleArg())
.put(Double.class, registryAccess -> DoubleArgumentType.doubleArg())
.put(float.class, registryAccess -> FloatArgumentType.floatArg())
Expand Down

0 comments on commit dad6082

Please sign in to comment.