aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacob <55346310+Kathund@users.noreply.github.com>2025-07-01 19:56:40 +0800
committerGitHub <noreply@github.com>2025-07-01 13:56:40 +0200
commitacd7c95b7d1bf62cc4cda09487ea8ec3b6e7266f (patch)
treeaf596668bb03921f70d7037e0a0799a99e97b807 /src
parent895471502ebb48939b65f5d1e78937ff325e37c4 (diff)
downloadFirmament-acd7c95b7d1bf62cc4cda09487ea8ec3b6e7266f.tar.gz
Firmament-acd7c95b7d1bf62cc4cda09487ea8ec3b6e7266f.tar.bz2
Firmament-acd7c95b7d1bf62cc4cda09487ea8ec3b6e7266f.zip
fix: require bz/ah tooltip being off for keybind to work
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/features/inventory/PriceData.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/kotlin/features/inventory/PriceData.kt b/src/main/kotlin/features/inventory/PriceData.kt
index 2e854b7..92bfc58 100644
--- a/src/main/kotlin/features/inventory/PriceData.kt
+++ b/src/main/kotlin/features/inventory/PriceData.kt
@@ -61,9 +61,8 @@ object PriceData : FirmamentFeature {
@Subscribe
fun onItemTooltip(it: ItemTooltipEvent) {
- if (!TConfig.tooltipEnabled && !TConfig.enableKeybinding.isPressed()) {
- return
- }
+ if (!TConfig.tooltipEnabled) return
+ if (TConfig.enableKeybinding.isBound && !TConfig.enableKeybinding.isPressed()) return
val sbId = it.stack.skyBlockId
val stackSize = it.stack.count
val isShowingStack = TConfig.stackSizeKey.isPressed()