fixed the save and close button not working

This commit is contained in:
Oth3r 2024-09-21 18:32:23 -05:00
commit 61b47d51ea

View file

@ -56,6 +56,7 @@ public class UnderConstructionScreen<T extends CustomFile<T>> extends Screen {
ButtonWidget saveExitButton = this.addDrawableChild(new ButtonWidget.Builder(Text.translatable("gui.button.save"), ButtonWidget saveExitButton = this.addDrawableChild(new ButtonWidget.Builder(Text.translatable("gui.button.save"),
(button) -> { (button) -> {
this.file.load();
this.file.save(); this.file.save();
this.client.setScreen(parent); this.client.setScreen(parent);
}) })