From dad6082021a6bd97a0df7c3b6a800eaba2e26f50 Mon Sep 17 00:00:00 2001 From: xpple Date: Thu, 24 Aug 2023 20:35:57 +0200 Subject: [PATCH] Add boolean argument type back to default arguments --- src/main/java/dev/xpple/betterconfig/impl/ModConfigImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/dev/xpple/betterconfig/impl/ModConfigImpl.java b/src/main/java/dev/xpple/betterconfig/impl/ModConfigImpl.java index 9221145..1f7f395 100644 --- a/src/main/java/dev/xpple/betterconfig/impl/ModConfigImpl.java +++ b/src/main/java/dev/xpple/betterconfig/impl/ModConfigImpl.java @@ -34,6 +34,8 @@ public class ModConfigImpl implements ModConfig { private static final Map, Function>> defaultArguments = ImmutableMap., Function>>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())