diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-14 00:59:37 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-14 00:59:37 +0100 |
commit | b7e4d63c3ec4331b2332b7b02c2ecef3f19487b5 (patch) | |
tree | bf4e56b7d4dbe58486a650428aa3b29ef0c82f4f /src/main/java | |
parent | c896b72c3f848e2bad54bc5545a189bf1466d515 (diff) | |
download | skyhanni-b7e4d63c3ec4331b2332b7b02c2ecef3f19487b5.tar.gz skyhanni-b7e4d63c3ec4331b2332b7b02c2ecef3f19487b5.tar.bz2 skyhanni-b7e4d63c3ec4331b2332b7b02c2ecef3f19487b5.zip |
Ignoring custom NEU items like copper that causes wrong coins per copper price.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index 4dcd2684d..8607a12af 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -299,6 +299,9 @@ class GardenVisitorFeatures { val (itemName, amount) = ItemUtils.readItemAmount(formattedLine) ?: continue val internalName = NEUItems.getInternalNameOrNull(itemName)?.replace("◆_", "") ?: continue + + // Ignoring custom NEU items like copper + if (internalName.startsWith("SKYBLOCK_")) continue val price = internalName.getPrice() * amount if (readingItemsNeeded) { @@ -356,6 +359,9 @@ class GardenVisitorFeatures { val (itemName, amount) = ItemUtils.readItemAmount(formattedLine) ?: continue val internalName = NEUItems.getInternalNameOrNull(itemName)?.replace("◆_", "") ?: continue + + // Ignoring custom NEU items like copper + if (internalName.startsWith("SKYBLOCK_")) continue val price = internalName.getPrice() * amount if (config.inventory.showPrice) { |