diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-27 13:02:03 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-27 13:02:03 +0200 |
commit | fba63f009416c897aaddce36a27954cc0e54a878 (patch) | |
tree | 9e961aa53ac5cf71f748fab1b513c261a8d3580f /src/main/java/at/hannibal2/skyhanni/config/Features.java | |
parent | bed00b027adfce18fe9d2a51e415f4c5243d093c (diff) | |
download | skyhanni-fba63f009416c897aaddce36a27954cc0e54a878.tar.gz skyhanni-fba63f009416c897aaddce36a27954cc0e54a878.tar.bz2 skyhanni-fba63f009416c897aaddce36a27954cc0e54a878.zip |
Auto saving the config every time the config gui closes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/Features.java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/Features.java | 6 |
1 files changed, 5 insertions, 1 deletions
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; @@ -31,6 +30,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"; } |