diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt index e27de7249..39a506892 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.features.damageindicator import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator import at.hannibal2.skyhanni.data.ScoreboardData import at.hannibal2.skyhanni.events.* import at.hannibal2.skyhanni.features.dungeon.DungeonData @@ -40,7 +41,7 @@ class DamageIndicatorManager { private var mobFinder: MobFinder? = null private val maxHealth = mutableMapOf<UUID, Long>() - private val config get() = SkyHanniMod.feature.damageIndicator + private val config get() = SkyHanniMod.feature.combat.damageIndicator companion object { private var data = mapOf<UUID, EntityData>() @@ -661,7 +662,7 @@ class DamageIndicatorManager { health: Int, maxHealth: Int, ): String? { - val config = SkyHanniMod.feature.damageIndicator.vampireSlayer + val config = config.vampireSlayer if (config.percentage) { val percentage = LorenzUtils.formatPercentage(health.toDouble() / maxHealth) @@ -859,5 +860,10 @@ class DamageIndicatorManager { } } + @SubscribeEvent + fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) { + event.move(2, "damageIndicator", "combat.damageIndicator") + } + fun isEnabled() = LorenzUtils.inSkyBlock && config.enabled }
\ No newline at end of file |