Skip to content

Commit

Permalink
Update usage to new function
Browse files Browse the repository at this point in the history
Signed-off-by: Walker Selby <[email protected]>
  • Loading branch information
walkerselby committed Dec 2, 2023
1 parent e064d27 commit 549b7cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import at.hannibal2.skyhanni.events.LorenzChatEvent
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.matchMatcher
import at.hannibal2.skyhanni.utils.StringUtils.matches
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent

class DungeonDeathCounter {
Expand Down Expand Up @@ -47,7 +47,7 @@ class DungeonDeathCounter {
)

private fun isDeathMessage(message: String): Boolean =
deathPatternsList.any { it.matchMatcher(message) { } != null }
deathPatternsList.any { it.matches(message) }

@SubscribeEvent(receiveCanceled = true)
fun onChatPacket(event: LorenzChatEvent) {
Expand Down

0 comments on commit 549b7cb

Please sign in to comment.