diff options
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt | 4 |
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 |