From c840851091ac9281732ca97efc76f7704c83fce1 Mon Sep 17 00:00:00 2001 From: btwonion Date: Wed, 31 Jul 2024 17:38:29 +0200 Subject: [PATCH] fix placed crystal not being recognized --- constants/regexes.json | 2 +- .../mining/hollows/tracker/nucleus/CrystalRunListener.kt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/constants/regexes.json b/constants/regexes.json index 00f43bd..534cb2e 100644 --- a/constants/regexes.json +++ b/constants/regexes.json @@ -69,7 +69,7 @@ "chat.hollows.passExpire": "Your pass to the Crystal Hollows will expire in 1 minute", "chat.hollows.run.completed": "You've earned a Crystal Loot Bundle!", "chat.hollows.run.crystalFound": "\\s{30}(\\w+) Crystal", - "chat.hollows.run.crystalPlaced": "✦ You placed the \\w+ Crystal!", + "chat.hollows.run.crystalPlaced": "✦ You placed the (\\w+) Crystal!", "chat.general.server_send": "Sending to server (\\w{7,8})...", "chat.general.profile": "§aYou are playing on profile: §e(\\w+)", "chat.mining.abilityUsed": "You used your (\\D+) Pickaxe Ability!", diff --git a/src/main/kotlin/dev/nyon/skylper/skyblock/mining/hollows/tracker/nucleus/CrystalRunListener.kt b/src/main/kotlin/dev/nyon/skylper/skyblock/mining/hollows/tracker/nucleus/CrystalRunListener.kt index 0bfbcc1..fb51ccf 100644 --- a/src/main/kotlin/dev/nyon/skylper/skyblock/mining/hollows/tracker/nucleus/CrystalRunListener.kt +++ b/src/main/kotlin/dev/nyon/skylper/skyblock/mining/hollows/tracker/nucleus/CrystalRunListener.kt @@ -25,7 +25,6 @@ object CrystalRunListener { private fun String.checkFoundCrystal() { val match = crystalFoundRegex.singleGroup(this) ?: return val foundCrystal = Crystal.entries.find { it.displayName == match } ?: return - println("found: $foundCrystal") EventHandler.invokeEvent(CrystalFoundEvent(foundCrystal)) @@ -42,7 +41,6 @@ object CrystalRunListener { private fun String.checkPlacedCrystal() { val crystal = crystalPlacedRegex.singleGroup(this).run { Crystal.entries.find { it.displayName == this } } ?: return - println("placed: $crystal") EventHandler.invokeEvent(CrystalPlaceEvent(crystal)) }