From 0d8fb26e0c79722b6b2235cce351aeb65aa3ee15 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 7 Oct 2023 20:30:01 +0200 Subject: only allow debug toggle in debug mode --- .../skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt index 5dee3ef25..559dc3c21 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt @@ -112,9 +112,7 @@ object AdvancedPlayerList { return newList } - fun ignoreCustomTabList(): Boolean { - return LorenzUtils.isControlKeyDown() - } + fun ignoreCustomTabList() = SkyHanniMod.feature.dev.debugEnabled && LorenzUtils.isControlKeyDown() private fun createCustomName(data: PlayerData): String { val playerName = if (config.useLevelColorForName) { -- cgit