aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt
index 6b45d5d9e..55473a2c6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt
@@ -229,13 +229,9 @@ object ItemPickupLog {
}
private fun isBannedItem(item: ItemStack): Boolean {
- if (item.getInternalNameOrNull()?.startsWith("MAP") == true) {
- return true
- }
-
- if (bannedItemsConverted.contains(item.getInternalNameOrNull())) {
- return true
- }
+ val internalName = item.getInternalNameOrNull() ?: return true
+ if (internalName.startsWith("MAP") == true) return true
+ if (internalName in bannedItemsConverted) return true
if (item.getExtraAttributes()?.hasKey("quiver_arrow") == true) {
return true