aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-17 19:59:23 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-17 19:59:23 +0100
commit0c99cc15ca0f977cd14cd067ef4d069f067edda1 (patch)
tree44ca47b2cac8326c6121da30ef56371087d3da97
parentba239d616071f0ffb973c881a1fbc3832c86e054 (diff)
downloadskyhanni-0c99cc15ca0f977cd14cd067ef4d069f067edda1.tar.gz
skyhanni-0c99cc15ca0f977cd14cd067ef4d069f067edda1.tar.bz2
skyhanni-0c99cc15ca0f977cd14cd067ef4d069f067edda1.zip
Fixed daily bosses detection in Crimson Isle Reputation Helper.
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt
index 87ab3ae5f..a182fb0b1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/miniboss/DailyMiniBossHelper.kt
@@ -2,6 +2,7 @@ package at.hannibal2.skyhanni.features.nether.reputationhelper.miniboss
import at.hannibal2.skyhanni.config.Storage
import at.hannibal2.skyhanni.data.IslandType
+import at.hannibal2.skyhanni.data.jsonobjects.repo.CrimsonIsleReputationJson.ReputationQuest
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent
import at.hannibal2.skyhanni.features.combat.damageindicator.DamageIndicatorManager
@@ -13,10 +14,10 @@ import at.hannibal2.skyhanni.utils.LocationUtils
import at.hannibal2.skyhanni.utils.LorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.addAsSingletonList
+import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland
import at.hannibal2.skyhanni.utils.NEUItems.getItemStack
import at.hannibal2.skyhanni.utils.RenderUtils.drawDynamicText
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
-import at.hannibal2.skyhanni.data.jsonobjects.repo.CrimsonIsleReputationJson.ReputationQuest
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
class DailyMiniBossHelper(private val reputationHelper: CrimsonIsleReputationHelper) {
@@ -25,8 +26,7 @@ class DailyMiniBossHelper(private val reputationHelper: CrimsonIsleReputationHel
@SubscribeEvent
fun onChat(event: LorenzChatEvent) {
- if (!LorenzUtils.inSkyBlock) return
- if (LorenzUtils.skyBlockIsland != IslandType.CRIMSON_ISLE) return
+ if (!IslandType.CRIMSON_ISLE.isInIsland()) return
if (!reputationHelper.config.enabled) return
val message = event.message
@@ -105,7 +105,7 @@ class DailyMiniBossHelper(private val reputationHelper: CrimsonIsleReputationHel
miniBosses.clear()
for ((displayName, quest) in data) {
val displayItem = quest.item
- val pattern = " *§r§6§l${displayName.uppercase()} DOWN!".toPattern()
+ val pattern = "§f *§r§6§l${displayName.uppercase()} DOWN!".toPattern()
val location = reputationHelper.readLocationData(quest.location)
miniBosses.add(CrimsonMiniBoss(displayName, displayItem, location, pattern))
}