aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt
index 81639a112..c34c22ae1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt
@@ -311,7 +311,9 @@ class DungeonFinderFeatures {
fun onRenderItemTip(event: RenderInventoryItemTipEvent) {
if (!isEnabled()) return
if (!config.floorAsStackSize) return
- event.stackTip = (floorStackSize[event.slot.slotIndex]
+ val slot = event.slot
+ if (slot.slotNumber != slot.slotIndex) return
+ event.stackTip = (floorStackSize[slot.slotIndex]
?.takeIf { it.isNotEmpty() } ?: return)
}