diff options
author | isXander <xandersmith2008@gmail.com> | 2023-08-15 00:16:13 +0100 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2023-08-15 00:16:13 +0100 |
commit | 5523d357f35410a043e83ef4a9506c806056f392 (patch) | |
tree | e2f88e5303394165d806ceb500cbd123276df349 /test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java | |
parent | b3355266572deef1a5c3e494ad162c592383e455 (diff) | |
download | YetAnotherConfigLib-5523d357f35410a043e83ef4a9506c806056f392.tar.gz YetAnotherConfigLib-5523d357f35410a043e83ef4a9506c806056f392.tar.bz2 YetAnotherConfigLib-5523d357f35410a043e83ef4a9506c806056f392.zip |
Added json5 to gson serializer
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 | 5 |
1 files changed, 4 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 2eadb2a..4953d0c 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 @@ -44,7 +44,10 @@ public class GuiTest { .build()) .option(ButtonOption.createBuilder() .name(Component.literal("Auto-gen test")) - .action((screen, opt) -> Minecraft.getInstance().setScreen(ConfigV2Test.INSTANCE.generateGui().generateScreen(screen))) + .action((screen, opt) -> { + ConfigV2Test.INSTANCE.serializer().deserialize(); + Minecraft.getInstance().setScreen(ConfigV2Test.INSTANCE.generateGui().generateScreen(screen)); + }) .build()) .group(OptionGroup.createBuilder() .name(Component.literal("Wiki")) |