diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-03-27 23:19:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 23:19:04 +0100 |
commit | 78ede4944f463fd2f0ac3715d68c3c6530c3f09e (patch) | |
tree | 7e79c19e5224c99b2cc6706c96dd8e5f83a94977 /src/main/java/at | |
parent | 7079bffb46e6902f2d7b320d444eb24e81cf3669 (diff) | |
download | skyhanni-78ede4944f463fd2f0ac3715d68c3c6530c3f09e.tar.gz skyhanni-78ede4944f463fd2f0ac3715d68c3c6530c3f09e.tar.bz2 skyhanni-78ede4944f463fd2f0ac3715d68c3c6530c3f09e.zip |
FIx: Dungeon Floor Number (#1297)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt | 4 |
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) } |