aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-25 07:45:18 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-25 07:45:18 +0100
commit72fb024dc19d83e996a6aaf7cd0dc0183e3a0378 (patch)
tree54616f3aaf10a40d06ed4146dff8ecb638c70abe /src/main/java
parentcf6339f9cc28e7c78a054d1a490c7625e57882ad (diff)
downloadskyhanni-72fb024dc19d83e996a6aaf7cd0dc0183e3a0378.tar.gz
skyhanni-72fb024dc19d83e996a6aaf7cd0dc0183e3a0378.tar.bz2
skyhanni-72fb024dc19d83e996a6aaf7cd0dc0183e3a0378.zip
toggle the tab list on key press, not key release. This should feel faster now.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt
index a6d61ed6a..afc97d766 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt
@@ -49,12 +49,12 @@ object TabListRenderer {
if (Minecraft.getMinecraft().currentScreen != null) return
if (Minecraft.getMinecraft().gameSettings.keyBindPlayerList.isActive()) {
- isPressed = true
- } else {
- if (isPressed) {
- isPressed = false
+ if (!isPressed) {
+ isPressed = true
isTabToggled = !isTabToggled
}
+ } else {
+ isPressed = false
}
if (isTabToggled) {