aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-27 13:02:03 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-27 13:02:03 +0200
commit08d8dfc2c64fe114fc08884f555f3f1b71b163be (patch)
tree9e961aa53ac5cf71f748fab1b513c261a8d3580f
parent43e94ea1b33fe6106724f723d0254579dcb90968 (diff)
downloadSkyHanni-08d8dfc2c64fe114fc08884f555f3f1b71b163be.tar.gz
SkyHanni-08d8dfc2c64fe114fc08884f555f3f1b71b163be.tar.bz2
SkyHanni-08d8dfc2c64fe114fc08884f555f3f1b71b163be.zip
Auto saving the config every time the config gui closes
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/Features.java6
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";
}