aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-18 17:32:59 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-18 17:32:59 +0200
commit9a9f946665aed7e60e7e58aefc4129fddba57659 (patch)
treef96696882fb63ca8aff60bb744f0c6b82f2ddf33 /src
parentc7c017e48eb8d207df453dc0b83cac85b6fb2d92 (diff)
downloadskyhanni-9a9f946665aed7e60e7e58aefc4129fddba57659.tar.gz
skyhanni-9a9f946665aed7e60e7e58aefc4129fddba57659.tar.bz2
skyhanni-9a9f946665aed7e60e7e58aefc4129fddba57659.zip
overload damage gets detected as damage splash correctly
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/MarkedPlayerManager.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatFilter.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/MarkedPlayerManager.kt b/src/main/java/at/hannibal2/skyhanni/features/MarkedPlayerManager.kt
index 48570898d..e8dba9735 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/MarkedPlayerManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/MarkedPlayerManager.kt
@@ -121,7 +121,7 @@ class MarkedPlayerManager {
}
}
- @SubscribeEvent(receiveCanceled = true)
+ @SubscribeEvent
fun onMarkedChatMessage(event: PlayerSendChatEvent) {
if (!LorenzUtils.inSkyblock) return
diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatFilter.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatFilter.kt
index fe0cc52b7..ef1191844 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatFilter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/chat/playerchat/PlayerChatFilter.kt
@@ -43,7 +43,7 @@ class PlayerChatFilter {
}
}
- @SubscribeEvent(priority = EventPriority.HIGH, receiveCanceled = true)
+ @SubscribeEvent(priority = EventPriority.HIGH)
fun onEvent(event: PlayerSendChatEvent) {
if (!SkyHanniMod.feature.chat.chatFilter) return
if (event.channel != PlayerMessageChannel.ALL) return
diff --git a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt
index c6fb65c26..328ab2bbe 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/damageindicator/DamageIndicatorManager.kt
@@ -40,7 +40,7 @@ class DamageIndicatorManager {
companion object {
private var data = mutableMapOf<UUID, EntityData>()
- private val damagePattern: Pattern = Pattern.compile("✧?(\\d+[⚔+✧❤♞☄✷ﬗ]*)")
+ private val damagePattern: Pattern = Pattern.compile("[✧✯]?(\\d+[⚔+✧❤♞☄✷ﬗ✯]*)")
fun isBoss(entity: EntityLivingBase): Boolean {
return data.values.any { it.entity == entity }