aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt
index 26a293a20..8ac451c85 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt
@@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.utils.StringUtils.matches
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
class DungeonDeathCounter {
+ private val config get() = SkyHanniMod.feature.dungeon
private var display = ""
private var deaths = 0
@@ -90,11 +91,11 @@ class DungeonDeathCounter {
fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) {
if (!isEnabled()) return
- SkyHanniMod.feature.dungeon.deathCounterPos.renderString(
+ config.deathCounterPos.renderString(
DungeonMilestonesDisplay.colour + display,
posLabel = "Dungeon Death Counter"
)
}
- private fun isEnabled(): Boolean = DungeonAPI.inDungeon() && SkyHanniMod.feature.dungeon.deathCounterDisplay
+ private fun isEnabled(): Boolean = DungeonAPI.inDungeon() && config.deathCounterDisplay
}