From 5963bc06ba7481d36e1458f822e2eae576595b56 Mon Sep 17 00:00:00 2001 From: Prospector Date: Mon, 22 Apr 2024 13:26:20 -0700 Subject: [PATCH] Fix update checker not being called when screen is closed in a way other than the button - Fix update checker not being run when config screen is closed without the Done button --- .../com/terraformersmc/modmenu/gui/ModMenuOptionsScreen.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/terraformersmc/modmenu/gui/ModMenuOptionsScreen.java b/src/main/java/com/terraformersmc/modmenu/gui/ModMenuOptionsScreen.java index b0efeb3b..df04d9ee 100644 --- a/src/main/java/com/terraformersmc/modmenu/gui/ModMenuOptionsScreen.java +++ b/src/main/java/com/terraformersmc/modmenu/gui/ModMenuOptionsScreen.java @@ -51,6 +51,7 @@ public void renderBackground(DrawContext context, int mouseX, int mouseY, float } public void removed() { + ModMenu.checkForUpdates(); ModMenuConfigManager.save(); } }