diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-09 20:50:39 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-09 20:50:39 +0200 |
commit | 53f17cb2b8682314a5eba3986245e3de9f8cdd60 (patch) | |
tree | a63030c169810310f99a3462482bbedf8a6d8bb8 | |
parent | 58f1fec99d532c517aaf309772874ad5629ea39b (diff) | |
download | skyhanni-53f17cb2b8682314a5eba3986245e3de9f8cdd60.tar.gz skyhanni-53f17cb2b8682314a5eba3986245e3de9f8cdd60.tar.bz2 skyhanni-53f17cb2b8682314a5eba3986245e3de9f8cdd60.zip |
code cleanup
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt | 5 |
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 } |