aboutsummaryrefslogtreecommitdiff
path: root/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java
diff options
context:
space:
mode:
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.java5
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"))