diff options
Diffstat (limited to 'src/testmod/java')
-rw-r--r-- | src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java b/src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java index 5d864da..717132b 100644 --- a/src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java +++ b/src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java @@ -9,7 +9,9 @@ import java.util.List; import java.nio.file.Path; public class ExampleConfig { - public static final ConfigInstance<ExampleConfig> INSTANCE = new GsonConfigInstance<>(ExampleConfig.class, Path.of("./config/yacl-test.json")); + public static final ConfigInstance<ExampleConfig> INSTANCE = GsonConfigInstance.createBuilder(ExampleConfig.class) + .setPath(Path.of("./config/yacl-test.json")) + .build(); @ConfigEntry public boolean booleanToggle = false; @ConfigEntry public boolean customBooleanToggle = false; |