aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt
index 067a3a8bf..66f20f103 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt
@@ -34,16 +34,15 @@ object DefaultConfigFeatures {
SkyHanniMod.feature.storage.hasPlayedBefore = true
LorenzUtils.clickableChat(
"§e[SkyHanni] Looks like this is the first time you are using SkyHanni. " +
- "Click here to configure default options, or run /shdefaultoptions.",
+ "Click here to configure default options, or run /shdefaultoptions.",
"shdefaultoptions"
)
} else if (updated) {
- val mostFeatureFulOldVersion =
- knownToggles.maxByOrNull { if (it.key != SkyHanniMod.version) it.value.size else -1 }
- val command = "/shdefaultoptions ${mostFeatureFulOldVersion?.key} ${SkyHanniMod.version}"
+ val lastVersion = knownToggles.keys.last()
+ val command = "/shdefaultoptions $lastVersion ${SkyHanniMod.version}"
LorenzUtils.clickableChat(
"§e[SkyHanni] Looks like you updated SkyHanni. " +
- "Click here to configure the newly introduced options, or run $command.",
+ "Click here to configure the newly introduced options, or run $command.",
command
)
}