From 53f17cb2b8682314a5eba3986245e3de9f8cdd60 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 9 Apr 2024 20:50:39 +0200 Subject: code cleanup --- .../at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 } -- cgit