Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Apr 9, 2024
1 parent 58f1fec commit 53f17cb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

0 comments on commit 53f17cb

Please sign in to comment.