From fba63f009416c897aaddce36a27954cc0e54a878 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 27 Apr 2023 13:02:03 +0200 Subject: Auto saving the config every time the config gui closes --- src/main/java/at/hannibal2/skyhanni/config/Features.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config/Features.java') diff --git a/src/main/java/at/hannibal2/skyhanni/config/Features.java b/src/main/java/at/hannibal2/skyhanni/config/Features.java index 064b5ce2a..e91e89c8b 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/Features.java +++ b/src/main/java/at/hannibal2/skyhanni/config/Features.java @@ -16,7 +16,6 @@ public class Features extends Config { public static final ResourceLocation DISCORD = new ResourceLocation("notenoughupdates:social/discord.png"); public static final ResourceLocation GITHUB = new ResourceLocation("notenoughupdates:social/github.png"); - @Override public boolean shouldAutoFocusSearchbar() { return true; @@ -30,6 +29,11 @@ public class Features extends Config { ); } + @Override + public void saveNow() { + SkyHanniMod.configManager.saveConfig("close-gui"); + } + @Override public String getTitle() { return "SkyHanni " + SkyHanniMod.getVersion() + " by §channibal2§r, config by §5Moulberry §rand §5nea89"; -- cgit