diff options
| author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-04-09 20:49:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-09 20:49:52 +0200 |
| commit | 58f1fec99d532c517aaf309772874ad5629ea39b (patch) | |
| tree | e4c52e21f7bbbc6920253584680dae33770693d1 /src/main/java | |
| parent | 259acef3cffac049f20c528cb21740e0ec394f3e (diff) | |
| download | skyhanni-58f1fec99d532c517aaf309772874ad5629ea39b.tar.gz skyhanni-58f1fec99d532c517aaf309772874ad5629ea39b.tar.bz2 skyhanni-58f1fec99d532c517aaf309772874ad5629ea39b.zip | |
Backend: Switch from LorenzUtils.inDungeons to DungeonAPI.inDungeon() (#1378)
Co-authored-by: Cal <cwolfson58@gmail.com>
Diffstat (limited to 'src/main/java')
36 files changed, 65 insertions, 73 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt index 85b0e8ec7..ebfb4a892 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/MaxwellAPI.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.data.jsonobjects.repo.MaxwellPowersJson import at.hannibal2.skyhanni.events.InventoryOpenEvent import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.RepositoryReloadEvent +import at.hannibal2.skyhanni.features.dungeon.DungeonAPI import at.hannibal2.skyhanni.features.gui.customscoreboard.CustomScoreboard import at.hannibal2.skyhanni.features.gui.customscoreboard.ScoreboardElement import at.hannibal2.skyhanni.test.command.ErrorManager @@ -12,7 +13,6 @@ import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.ItemUtils.name import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.groupOrNull -import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland import at.hannibal2.skyhanni.utils.NumberUtil.formatInt import at.hannibal2.skyhanni.utils.StringUtils.matchFirst import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher @@ -250,7 +250,7 @@ object MaxwellAPI { inventoryMPPattern.matchMatcher(line) { // MagicalPower is boosted in catacombs - if (IslandType.CATACOMBS.isInIsland()) return@matchMatcher + if (DungeonAPI.inDungeon()) return@matchMatcher val mp = group("mp") magicalPower = mp.formatInt() diff --git a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ArrowTypeJson.java b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ArrowTypeJson.java index 3388cb62c..4173fa0a3 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ArrowTypeJson.java +++ b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/ArrowTypeJson.java @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.data.jsonobjects.repo; import com.google.gson.annotations.Expose; + import java.util.Map; public class ArrowTypeJson { diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerDeathMessages.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerDeathMessages.kt index 05b4a0cd7..f44185c4c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerDeathMessages.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerDeathMessages.kt @@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.features.chat import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.LorenzTickEvent +import at.hannibal2.skyhanni.features.dungeon.DungeonAPI import at.hannibal2.skyhanni.features.misc.MarkedPlayerManager import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.EntityUtils @@ -42,7 +43,7 @@ class PlayerDeathMessages { deathMessagePattern.matchMatcher(message) { val name = group("name") if (MarkedPlayerManager.config.highlightInChat && - !LorenzUtils.inDungeons && !LorenzUtils.inKuudraFight && MarkedPlayerManager.isMarkedPlayer(name) + !DungeonAPI.inDungeon() && !LorenzUtils.inKuudraFight && MarkedPlayerManager.isMarkedPlayer(name) ) { val reason = group("reason").removeColor() @@ -68,6 +69,6 @@ class PlayerDeathMessages { } private fun isHideFarDeathsEnabled(): Boolean { - return LorenzUtils.inSkyBlock && SkyHanniMod.feature.chat.hideFarDeathMessages && !LorenzUtils.inDungeons && !LorenzUtils.inKuudraFight + return LorenzUtils.inSkyBlock && SkyHanniMod.feature.chat.hideFarDeathMessages && !DungeonAPI.inDungeon() && !LorenzUtils.inKuudraFight } } diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/DamageIndicatorManager.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/DamageIndicatorManager.kt index 563917cd3..57096d6de 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/DamageIndicatorManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/DamageIndicatorManager.kt @@ -333,7 +333,7 @@ class DamageIndicatorManager { private fun checkEntity(entity: EntityLivingBase): Pair<UUID, EntityData>? { try { val entityData = grabData(entity) ?: return null - if (LorenzUtils.inDungeons) { + if (DungeonAPI.inDungeon()) { checkFinalBoss(entityData.finalDungeonBoss, entity.entityId) } diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/MobFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/MobFinder.kt index 6c284d596..5d0be14de 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/MobFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/MobFinder.kt @@ -11,7 +11,6 @@ import at.hannibal2.skyhanni.utils.EntityUtils.hasBossHealth import at.hannibal2.skyhanni.utils.EntityUtils.hasMaxHealth import at.hannibal2.skyhanni.utils.EntityUtils.hasNameTagWith import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer -import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.baseMaxHealth import at.hannibal2.skyhanni.utils.LorenzUtils.derpy import at.hannibal2.skyhanni.utils.LorenzUtils.ignoreDerpy @@ -83,7 +82,7 @@ class MobFinder { private var floor6SadanSpawnTime = 0L internal fun tryAdd(entity: EntityLivingBase) = when { - LorenzUtils.inDungeons -> tryAddDungeon(entity) + DungeonAPI.inDungeon() -> tryAddDungeon(entity) RiftAPI.inRift() -> tryAddRift(entity) GardenAPI.inGarden() -> tryAddGarden(entity) else -> { @@ -512,7 +511,7 @@ class MobFinder { } fun handleChat(message: String) { - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return when (message) { // F1 "§c[BOSS] Bonzo§r§f: Gratz for making it this far, but I'm basically unbeatable." -> { @@ -609,7 +608,7 @@ class MobFinder { } fun handleNewEntity(entity: Entity) { - if (LorenzUtils.inDungeons && floor3ProfessorGuardian && entity is EntityGuardian && floor3ProfessorGuardianEntity == null) { + if (DungeonAPI.inDungeon() && floor3ProfessorGuardian && entity is EntityGuardian && floor3ProfessorGuardianEntity == null) { floor3ProfessorGuardianEntity = entity floor3ProfessorGuardianPrepare = false } diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt index cf893fd0d..fca4e0668 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt @@ -1,5 +1,6 @@ package at.hannibal2.skyhanni.features.dungeon +import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.data.ProfileStorageData import at.hannibal2.skyhanni.data.ScoreboardData import at.hannibal2.skyhanni.events.DebugDataCollectEvent @@ -16,6 +17,7 @@ import at.hannibal2.skyhanni.utils.CollectionUtils.equalsOneOf import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.ItemUtils.name import at.hannibal2.skyhanni.utils.LorenzUtils +import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland import at.hannibal2.skyhanni.utils.NumberUtil.formatInt import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimalIfNecessary import at.hannibal2.skyhanni.utils.StringUtils.matchFirst @@ -57,7 +59,7 @@ object DungeonAPI { "§.\\s+§.§.(?:The|Master Mode) Catacombs §.§.- §.§.(?:Floor )?(?<floor>M?[IV]{1,3}|Entrance)" ) - fun inDungeon() = dungeonFloor != null + fun inDungeon() = IslandType.CATACOMBS.isInIsland() fun isOneOf(vararg floors: String) = dungeonFloor?.equalsOneOf(*floors) == true @@ -242,7 +244,7 @@ object DungeonAPI { fun onDebugDataCollect(event: DebugDataCollectEvent) { event.title("Dungeon") - if (!LorenzUtils.inDungeons) { + if (!inDungeon()) { event.addIrrelevant("not in dungeons") return } diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossHideDamageSplash.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossHideDamageSplash.kt index 0d22b81be..6f5a83a85 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossHideDamageSplash.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossHideDamageSplash.kt @@ -3,7 +3,6 @@ package at.hannibal2.skyhanni.features.dungeon import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.SkyHanniRenderEntityEvent import at.hannibal2.skyhanni.features.combat.damageindicator.DamageIndicatorManager -import at.hannibal2.skyhanni.utils.LorenzUtils import net.minecraft.entity.EntityLivingBase import net.minecraftforge.fml.common.eventhandler.EventPriority import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -12,7 +11,7 @@ class DungeonBossHideDamageSplash { @SubscribeEvent(priority = EventPriority.HIGH) fun onRenderLiving(event: SkyHanniRenderEntityEvent.Specials.Pre<EntityLivingBase>) { - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return if (!SkyHanniMod.feature.dungeon.damageSplashBoss) return if (!DungeonAPI.inBossRoom) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt index 48765a095..dc4a6182d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt @@ -2,7 +2,6 @@ package at.hannibal2.skyhanni.features.dungeon import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.LorenzChatEvent -import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -45,7 +44,7 @@ class DungeonBossMessages { @SubscribeEvent fun onChat(event: LorenzChatEvent) { - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return if (!isBoss(event.message)) return DungeonAPI.handleBossMessage(event.message) diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt index acdc50f95..495ff56a9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt @@ -208,7 +208,7 @@ class DungeonChatFilter { message.isFiltered(MessageTypes.START) -> return "start" } - if (!LorenzUtils.inDungeons) return "" + if (!DungeonAPI.inDungeon()) return "" return when { message.isFiltered(MessageTypes.AMBIENCE) -> "ambience" 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 c65e34964..d4469be52 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt @@ -10,7 +10,6 @@ import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent import at.hannibal2.skyhanni.events.PlaySoundEvent import at.hannibal2.skyhanni.events.ReceiveParticleEvent import at.hannibal2.skyhanni.utils.ChatUtils -import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern import net.minecraft.client.Minecraft @@ -33,7 +32,7 @@ class DungeonCleanEnd { @SubscribeEvent fun onChat(event: LorenzChatEvent) { - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return if (!config.enabled) return val message = event.message @@ -44,7 +43,7 @@ class DungeonCleanEnd { } private fun shouldBlock(): Boolean { - if (!LorenzUtils.inDungeons) return false + if (!DungeonAPI.inDungeon()) return false if (!config.enabled) return false if (!bossDone) return false @@ -61,7 +60,7 @@ class DungeonCleanEnd { @SubscribeEvent fun onBossDead(event: DamageIndicatorFinalBossEvent) { - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return if (bossDone) return if (lastBossId == -1) { @@ -71,7 +70,7 @@ class DungeonCleanEnd { @SubscribeEvent fun onEntityHealthUpdate(event: EntityHealthUpdateEvent) { - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return if (!config.enabled) return if (bossDone) return if (lastBossId == -1) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt index 60574b1c6..4fb461d9b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt @@ -91,7 +91,7 @@ class DungeonCopilot { @SubscribeEvent fun onCheckRender(event: CheckRenderEntityEvent<*>) { - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return val entity = event.entity if (entity !is EntityArmorStand) return @@ -130,9 +130,7 @@ class DungeonCopilot { changeNextStep("") } - private fun isEnabled(): Boolean { - return LorenzUtils.inDungeons && config.enabled - } + private fun isEnabled(): Boolean = DungeonAPI.inDungeon() && config.enabled @SubscribeEvent fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) { 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 57afa54cb..26a293a20 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonDeathCounter.kt @@ -6,7 +6,6 @@ import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent import at.hannibal2.skyhanni.utils.ChatUtils -import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.renderString import at.hannibal2.skyhanni.utils.StringUtils.matches import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -97,7 +96,5 @@ class DungeonDeathCounter { ) } - private fun isEnabled(): Boolean { - return LorenzUtils.inDungeons && SkyHanniMod.feature.dungeon.deathCounterDisplay - } + private fun isEnabled(): Boolean = DungeonAPI.inDungeon() && SkyHanniMod.feature.dungeon.deathCounterDisplay } diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHideItems.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHideItems.kt index 82002040c..f100e9cff 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHideItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHideItems.kt @@ -12,7 +12,6 @@ import at.hannibal2.skyhanni.utils.ColorUtils.withAlpha import at.hannibal2.skyhanni.utils.ItemUtils.cleanName import at.hannibal2.skyhanni.utils.ItemUtils.getSkullTexture import at.hannibal2.skyhanni.utils.LorenzColor -import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.getLorenzVec import net.minecraft.entity.Entity import net.minecraft.entity.item.EntityArmorStand @@ -57,7 +56,7 @@ class DungeonHideItems { @SubscribeEvent fun onCheckRender(event: CheckRenderEntityEvent<*>) { - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return val entity = event.entity @@ -167,7 +166,7 @@ class DungeonHideItems { @SubscribeEvent fun onReceiveParticle(event: ReceiveParticleEvent) { - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return if (!config.hideSuperboomTNT && !config.hideReviveStone) return val packetLocation = event.location @@ -186,7 +185,7 @@ class DungeonHideItems { @SubscribeEvent fun onEntityMove(event: EntityMoveEvent) { - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return val entity = event.entity if (entity !is EntityArmorStand) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt index a3381744c..9d030e528 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt @@ -8,7 +8,6 @@ import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent import at.hannibal2.skyhanni.utils.BlockUtils import at.hannibal2.skyhanni.utils.BlockUtils.getBlockAt import at.hannibal2.skyhanni.utils.LorenzColor -import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzVec import at.hannibal2.skyhanni.utils.RenderUtils.drawColor import at.hannibal2.skyhanni.utils.RenderUtils.drawString @@ -31,7 +30,7 @@ class DungeonHighlightClickedBlocks { @SubscribeEvent fun onChat(event: LorenzChatEvent) { if (!SkyHanniMod.feature.dungeon.highlightClickedBlocks) return - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return if (event.message == "§cYou hear the sound of something opening...") { event.blockedReason = "dungeon_highlight_clicked_block" @@ -41,7 +40,7 @@ class DungeonHighlightClickedBlocks { @SubscribeEvent fun onBlockClick(event: BlockClickEvent) { if (!SkyHanniMod.feature.dungeon.highlightClickedBlocks) return - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return if (DungeonAPI.inBossRoom) return if (event.clickType != ClickType.RIGHT_CLICK) return @@ -76,7 +75,7 @@ class DungeonHighlightClickedBlocks { @SubscribeEvent fun onWorldRender(event: LorenzRenderWorldEvent) { if (!SkyHanniMod.feature.dungeon.highlightClickedBlocks) return - if (!LorenzUtils.inDungeons) return + if (!DungeonAPI.inDungeon()) return blocks.removeAll { System.currentTimeMillis() > it.time + 3000 } blocks.forEach { diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonLividFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonLividFinder.kt index 30e3dbc5e..4d4bb6804 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonLividFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonLividFinder.kt @@ -13,7 +13,6 @@ import at.hannibal2.skyhanni.utils.EntityUtils import at.hannibal2.skyhanni.utils.LocationUtils.distanceSqToPlayer import at.hannibal2.skyhanni.utils.LorenzColor import at.hannibal2.skyhanni.utils.LorenzColor.Companion.toLorenzColor -import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzVec import at.hannibal2.skyhanni.utils.RenderUtils.draw3DLine import at.hannibal2.skyhanni.utils.RenderUtils.drawDynamicText @@ -135,7 +134,7 @@ object DungeonLividFinder { } private fun inDungeon(): Boolean { - if (!LorenzUtils.inDungeons) return false + if (!DungeonAPI.inDungeon()) return false if (!DungeonAPI.inBossRoom) return false if (!DungeonAPI.isOneOf("F5", "M5")) return false diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt index bdd681b72..161f263d1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt @@ -6,7 +6,6 @@ import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent -import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.renderString import at.hannibal2.skyhanni.utils.StringUtils.matches import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern @@ -81,5 +80,5 @@ object DungeonMilestonesDisplay { ) } - private fun isEnabled() = LorenzUtils.inDungeons && config.showMilestonesDisplay + private fun isEnabled() = DungeonAPI.inDungeon() && config.showMilestonesDisplay } diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonRankTabListColor.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonRankTabListColor.kt index 5df34421b..3e0a719fa 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonRankTabListColor.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonRankTabListColor.kt @@ -2,7 +2,6 @@ package at.hannibal2.skyhanni.features.dungeon import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.TabListLineRenderEvent -import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimal import at.hannibal2.skyhanni.utils.StringUtils.cleanPlayerName import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher @@ -31,5 +30,5 @@ class DungeonRankTabListColor { } } - fun isEnabled() = LorenzUtils.inDungeons && config.coloredClassLevel + fun isEnabled() = DungeonAPI.inDungeon() && config.coloredClassLevel } |
