Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
fix placed crystal not being recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
btwonion committed Jul 31, 2024
1 parent a50c083 commit c840851
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion constants/regexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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!",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand All @@ -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))
}

Expand Down

0 comments on commit c840851

Please sign in to comment.