diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-08-24 16:26:54 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-08-24 16:26:54 +0200 |
commit | 1ea9026acb04504200892b67c81c60ee64723b12 (patch) | |
tree | 0d20184c03e5a634cb4827ba0fa6f8d9b6799ece /src/main/java/at/hannibal2/skyhanni/features/dungeon | |
parent | ff5e79753e61bfec2affa74d3a8c65d7f8a7b77f (diff) | |
download | skyhanni-1ea9026acb04504200892b67c81c60ee64723b12.tar.gz skyhanni-1ea9026acb04504200892b67c81c60ee64723b12.tar.bz2 skyhanni-1ea9026acb04504200892b67c81c60ee64723b12.zip |
formatting dungeon features
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt | 6 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestoneDisplay.kt) | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt index 01950688a..6867e2171 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt @@ -25,7 +25,7 @@ class DungeonCleanEnd { @SubscribeEvent fun onChatMessage(event: LorenzChatEvent) { if (!LorenzUtils.inDungeons) return - if (!SkyHanniMod.feature.dungeon.cleanEnd) return + if (!SkyHanniMod.feature.dungeon.cleanEndToggle) return val message = event.message @@ -36,7 +36,7 @@ class DungeonCleanEnd { private fun shouldBlock(): Boolean { if (!LorenzUtils.inDungeons) return false - if (!SkyHanniMod.feature.dungeon.cleanEnd) return false + if (!SkyHanniMod.feature.dungeon.cleanEndToggle) return false if (!bossDone) return false @@ -63,7 +63,7 @@ class DungeonCleanEnd { @SubscribeEvent fun onHealthUpdatePacket(event: PacketEvent.ReceiveEvent) { if (!LorenzUtils.inDungeons) return - if (!SkyHanniMod.feature.dungeon.cleanEnd) return + if (!SkyHanniMod.feature.dungeon.cleanEndToggle) return if (bossDone) return if (lastBossId == -1) return 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 c59f5a3cb..129d9e3bd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt @@ -88,10 +88,10 @@ class DungeonDeathCounter { fun renderOverlay(event: RenderGameOverlayEvent.Post) { if (!isEnabled()) return - SkyHanniMod.feature.dungeon.deathCounterPos.renderString(DungeonMilestoneDisplay.color + textToRender) + SkyHanniMod.feature.dungeon.deathCounterPos.renderString(DungeonMilestonesDisplay.color + textToRender) } private fun isEnabled(): Boolean { - return LorenzUtils.inDungeons && SkyHanniMod.feature.dungeon.deathCounter + return LorenzUtils.inDungeons && SkyHanniMod.feature.dungeon.deathCounterDisplay } }
\ No newline at end of file diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt index cd8464730..12af1c7a4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt @@ -11,7 +11,7 @@ import net.minecraftforge.event.world.WorldEvent import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import kotlin.concurrent.fixedRateTimer -class DungeonMilestoneDisplay { +class DungeonMilestonesDisplay { companion object { @@ -87,10 +87,10 @@ class DungeonMilestoneDisplay { fun renderOverlay(event: RenderGameOverlayEvent.Post) { if (!isEnabled()) return - SkyHanniMod.feature.dungeon.milestoneDisplayPos.renderString(color + textToRender) + SkyHanniMod.feature.dungeon.showMileStonesDisplayPos.renderString(color + textToRender) } private fun isEnabled(): Boolean { - return LorenzUtils.inDungeons && SkyHanniMod.feature.dungeon.showMilestoneDisplay + return LorenzUtils.inDungeons && SkyHanniMod.feature.dungeon.showMilestonesDisplay } }
\ No newline at end of file |