aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-13 19:52:56 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-13 19:52:56 +0100
commit202675df454c4a4565052f12ede037c7212631ab (patch)
tree355fccffe9a0719328e532203c42f5a28765de9a /src/main
parentd8d0badd698d81ab916e0498de26158777ccbf23 (diff)
downloadskyhanni-202675df454c4a4565052f12ede037c7212631ab.tar.gz
skyhanni-202675df454c4a4565052f12ede037c7212631ab.tar.bz2
skyhanni-202675df454c4a4565052f12ede037c7212631ab.zip
Code cleanup
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt
index 200c3e69e..a496bd2b5 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarBestSellMethod.kt
@@ -47,8 +47,8 @@ class BazaarBestSellMethod {
for (slot in chest.inventorySlots) {
if (slot == null) continue
if (slot.slotNumber == slot.slotIndex) continue
- if (slot.stack == null) continue
- val stack = slot.stack
+ val stack = slot.stack ?: continue
+
var displayName = stack.displayName
if (displayName.endsWith("Enchanted Book")) {
displayName = stack.getLore()[0]