diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-18 17:32:59 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-18 17:32:59 +0200 |
commit | 9a9f946665aed7e60e7e58aefc4129fddba57659 (patch) | |
tree | f96696882fb63ca8aff60bb744f0c6b82f2ddf33 /src/main/java/at | |
parent | c7c017e48eb8d207df453dc0b83cac85b6fb2d92 (diff) | |
download | skyhanni-9a9f946665aed7e60e7e58aefc4129fddba57659.tar.gz skyhanni-9a9f946665aed7e60e7e58aefc4129fddba57659.tar.bz2 skyhanni-9a9f946665aed7e60e7e58aefc4129fddba57659.zip |
overload damage gets detected as damage splash correctly
Diffstat (limited to 'src/main/java/at')
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 } |