diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-08-16 11:17:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-16 11:17:59 +0200 |
commit | bdbac36d82003c8789a57b8d45ea818e5a2e8079 (patch) | |
tree | bffca5581570bf2cc1fdd40f7714f57f626dca4b /src/main/java | |
parent | a40a0f52410d2caf5901c666431851640e0ba542 (diff) | |
download | skyhanni-bdbac36d82003c8789a57b8d45ea818e5a2e8079.tar.gz skyhanni-bdbac36d82003c8789a57b8d45ea818e5a2e8079.tar.bz2 skyhanni-bdbac36d82003c8789a57b8d45ea818e5a2e8079.zip |
Fix: Pet detection (#2358)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt | 1 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt index 5f630335b..8af24175f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt @@ -89,6 +89,7 @@ object PestProfitTracker { val internalName = NEUInternalName.fromItemNameOrNull(group("item")) ?: return tracker.addItem(internalName, 1) + addKill() // pests always have guaranteed loot, therefore there's no need to add kill here } } diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index 296439939..5d63993d1 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -139,8 +139,9 @@ object NEUItems { var name = manager.createItem(rawInternalName).displayName.lowercase() val internalName = rawInternalName.asInternalName() - // TODO remove one of them once neu is consistent + // TODO remove all except one of them once neu is consistent name = name.removePrefix("§f§f§7[lvl 1➡100] ") + name = name.removePrefix("§f§f§7[lvl {lvl}] ") name = name.removePrefix("§7[lvl 1➡100] ") if (name.contains("[lvl 1➡100]")) { |