aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorLuna <me@lunya.dev>2024-09-08 09:06:01 +0200
committerGitHub <noreply@github.com>2024-09-08 09:06:01 +0200
commit5ac091a11d558717eb42106bcad35d23653dab5d (patch)
tree3eb75eeec35d59ebef75bfe3e6129c0163bd644d /src/main/java/at/hannibal2
parent270788e2ee876450f62a63197cb8914a803f5cc4 (diff)
downloadskyhanni-5ac091a11d558717eb42106bcad35d23653dab5d.tar.gz
skyhanni-5ac091a11d558717eb42106bcad35d23653dab5d.tar.bz2
skyhanni-5ac091a11d558717eb42106bcad35d23653dab5d.zip
Fix: Heavy Pearls sometimes not detected (#2479)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt b/src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt
index ef0f4bff9..2acbe3546 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt
@@ -121,7 +121,7 @@ object IslandExceptions {
armorStand: EntityArmorStand?,
nextEntity: EntityLivingBase?,
) = when {
- baseEntity is EntitySlime && armorStand?.name == "§f§lCOLLECT!" ->
+ baseEntity is EntitySlime && MobFilter.heavyPearlPattern.matches(armorStand?.name) ->
MobData.MobResult.found(
MobFactories.special(baseEntity, "Heavy Pearl"),
)
diff --git a/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt b/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt
index da8699bca..a9f8a1453 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt
@@ -103,6 +103,10 @@ object MobFilter {
"pattern.summon.owner",
".*Spawned by: (?<name>.*).*",
)
+ val heavyPearlPattern by repoGroup.pattern(
+ "pattern.heavypearl.collect",
+ "§.§lCOLLECT!",
+ )
/**
* REGEX-TEST: §8[§7Lv1§8] §5Horse