aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-09 20:50:39 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-09 20:50:39 +0200
commit53f17cb2b8682314a5eba3986245e3de9f8cdd60 (patch)
treea63030c169810310f99a3462482bbedf8a6d8bb8 /src
parent58f1fec99d532c517aaf309772874ad5629ea39b (diff)
downloadskyhanni-53f17cb2b8682314a5eba3986245e3de9f8cdd60.tar.gz
skyhanni-53f17cb2b8682314a5eba3986245e3de9f8cdd60.tar.bz2
skyhanni-53f17cb2b8682314a5eba3986245e3de9f8cdd60.zip
code cleanup
Diffstat (limited to 'src')
-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
}