From 78ede4944f463fd2f0ac3715d68c3c6530c3f09e Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Wed, 27 Mar 2024 23:19:04 +0100 Subject: FIx: Dungeon Floor Number (#1297) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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) } -- cgit