summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/cosmetics
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-11-16 10:40:55 +0000
committerGitHub <noreply@github.com>2023-11-16 11:40:55 +0100
commit024cd40a3a3e98da87a1ce6eaaebd379f312cc72 (patch)
treef10ecf557c761c3504247aa6c572a91d7150aad7 /src/main/java/at/hannibal2/skyhanni/features/cosmetics
parentebfbe5d586c40663f58540cd7a0d428633c7298f (diff)
downloadskyhanni-024cd40a3a3e98da87a1ce6eaaebd379f312cc72.tar.gz
skyhanni-024cd40a3a3e98da87a1ce6eaaebd379f312cc72.tar.bz2
skyhanni-024cd40a3a3e98da87a1ce6eaaebd379f312cc72.zip
Config Updates - Subcategories and Reformatting (#709)
Added new sub category stuff from moul config #709
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/cosmetics')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt10
2 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt b/src/main/java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt
index f7a28d78d..da18e8d28 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt
@@ -21,7 +21,7 @@ import kotlin.time.toDuration
class ArrowTrail {
- private val config get() = SkyHanniMod.feature.misc.cosmeticConfig.arrowTrailConfig
+ private val config get() = SkyHanniMod.feature.misc.cosmetic.arrowTrail
private data class Line(val start: LorenzVec, val end: LorenzVec, val deathTime: SimpleTimeMark)
diff --git a/src/main/java/at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt b/src/main/java/at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt
index 5dda13876..662ad68a0 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt
@@ -1,6 +1,7 @@
package at.hannibal2.skyhanni.features.cosmetics
import at.hannibal2.skyhanni.SkyHanniMod
+import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator
import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent
import at.hannibal2.skyhanni.events.LorenzTickEvent
import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent
@@ -19,7 +20,7 @@ import kotlin.time.Duration.Companion.milliseconds
import kotlin.time.Duration.Companion.seconds
class CosmeticFollowingLine {
- private val config get() = SkyHanniMod.feature.misc.cosmeticConfig.followingLineConfig
+ private val config get() = SkyHanniMod.feature.misc.cosmetic.followingLine
private var locations = mapOf<LorenzVec, LocationSpot>()
private var latestLocations = mapOf<LorenzVec, LocationSpot>()
@@ -120,4 +121,11 @@ class CosmeticFollowingLine {
}
}
}
+
+ @SubscribeEvent
+ fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) {
+ event.move(9, "misc.cosmeticConfig", "misc.cosmetic")
+ event.move(9, "misc.cosmeticConfig.followingLineConfig", "misc.cosmetic.followingLine")
+ event.move(9, "misc.cosmeticConfig.arrowTrailConfig", "misc.cosmetic.arrowTrail")
+ }
}