From dab050aa9ea795db5175d7209a0630ce6e1d0990 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 29 Aug 2023 23:14:27 +0200 Subject: fixing config reset --- src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java | 3 ++- src/main/java/at/hannibal2/skyhanni/features/misc/TimeFeatures.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java index 5b6c7f66c..9600eb699 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java @@ -49,10 +49,11 @@ public class MiscConfig { @Expose public Position petDisplayPos = new Position(-330, -15, false, true); + // rename this to just "time will cause a config reset @ConfigOption(name = "Time Features", desc = "") @Accordion @Expose - public TimeConfig time = new TimeConfig(); + public TimeConfig timeConfigs = new TimeConfig(); public static class TimeConfig { diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/TimeFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/TimeFeatures.kt index e956791bf..b8f41204b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/TimeFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/TimeFeatures.kt @@ -16,7 +16,7 @@ import kotlin.time.Duration.Companion.days import kotlin.time.Duration.Companion.seconds class TimeFeatures { - private val config get() = SkyHanniMod.feature.misc.time + private val config get() = SkyHanniMod.feature.misc.timeConfigs private val format = SimpleDateFormat("HH:mm:ss") -- cgit