From 72fb024dc19d83e996a6aaf7cd0dc0183e3a0378 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 25 Feb 2024 07:45:18 +0100 Subject: toggle the tab list on key press, not key release. This should feel faster now. --- .../skyhanni/features/misc/compacttablist/TabListRenderer.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/at') 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) { -- cgit