aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-07-20 04:28:06 +1000
committerGitHub <noreply@github.com>2023-07-19 20:28:06 +0200
commitd2816938d9cfa30c464af649123e7c3ffec3f3bb (patch)
tree6552324d50ed981acc58f1184878cab3efdc420d /src/main/java/at/hannibal2/skyhanni/features
parentae4762561aeccb5db58ffb45c9038da619149f82 (diff)
downloadskyhanni-d2816938d9cfa30c464af649123e7c3ffec3f3bb.tar.gz
skyhanni-d2816938d9cfa30c464af649123e7c3ffec3f3bb.tar.bz2
skyhanni-d2816938d9cfa30c464af649123e7c3ffec3f3bb.zip
Merge pull request #314
* hide ignored items * support contains * requested change * Using MultiFilter
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedWardrobePrice.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedWardrobePrice.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedWardrobePrice.kt
index b31a7f574..7ff1949ee 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedWardrobePrice.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedWardrobePrice.kt
@@ -4,7 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.events.InventoryOpenEvent
import at.hannibal2.skyhanni.events.LorenzToolTipEvent
import at.hannibal2.skyhanni.utils.InventoryUtils
-import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
+import at.hannibal2.skyhanni.utils.ItemUtils.getInternalNameOrNull
import at.hannibal2.skyhanni.utils.ItemUtils.name
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.NumberUtil
@@ -53,7 +53,7 @@ class EstimatedWardrobePrice {
val map = mutableMapOf<Int, MutableList<ItemStack>>()
for ((slot, item) in event.inventoryItems) {
- if (item.getInternalName() == "") continue
+ item.getInternalNameOrNull() ?: continue
val price = EstimatedItemValue.getEstimatedItemPrice(item, mutableListOf()).first
if (price == 0.0) continue
val id = slot % 9