Skip to content

Commit

Permalink
fix inv/chat opening
Browse files Browse the repository at this point in the history
#3186 but finished
  • Loading branch information
rueblimaster committed Jan 11, 2025
1 parent b2544ac commit fac0a7c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ object GardenCustomKeybinds {
@JvmStatic
fun isKeyDown(keyBinding: KeyBinding, cir: CallbackInfoReturnable<Boolean>) {
if (!isActive()) return
val override = map[keyBinding] ?: return
val override = map[keyBinding] ?: run {
if (map.containsValue(keyBinding.keyCode)) {
cir.returnValue = false
}
return
}

cir.returnValue = override.isKeyHeld()
}

Expand Down

0 comments on commit fac0a7c

Please sign in to comment.