diff options
author | isXander <xandersmith2008@gmail.com> | 2023-08-12 23:56:06 +0100 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2023-08-12 23:56:06 +0100 |
commit | d37e147dbb4db44a921533b572aed3e54b5c6a42 (patch) | |
tree | 0c72e58da081135d3819c4af7365f08c2af7fdb6 /test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java | |
parent | 3083aebe47f63661238ee2b521b0451af2d95e9f (diff) | |
download | YetAnotherConfigLib-d37e147dbb4db44a921533b572aed3e54b5c6a42.tar.gz YetAnotherConfigLib-d37e147dbb4db44a921533b572aed3e54b5c6a42.tar.bz2 YetAnotherConfigLib-d37e147dbb4db44a921533b572aed3e54b5c6a42.zip |
Config API v2
Diffstat (limited to 'test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java')
-rw-r--r-- | test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java b/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java index c490799..71e5545 100644 --- a/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java +++ b/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java @@ -57,6 +57,7 @@ public class GuiTest { private static Screen getFullTestSuite(Screen parent) { AtomicReference<Option<Boolean>> booleanOption = new AtomicReference<>(); + ConfigTest.GSON.serializer().deserialize(); return YetAnotherConfigLib.create(ConfigTest.GSON, (defaults, config, builder) -> builder .title(Component.literal("Test GUI")) .category(ConfigCategory.createBuilder() @@ -372,7 +373,7 @@ public class GuiTest { .build()) .save(() -> { Minecraft.getInstance().options.save(); - ConfigTest.GSON.save(); + ConfigTest.GSON.serializer().serialize(); }) ) .generateScreen(parent); |