diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-07 20:30:01 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-07 20:30:01 +0200 |
commit | 0d8fb26e0c79722b6b2235cce351aeb65aa3ee15 (patch) | |
tree | 4322ebf33237eaf1375c961b917a78832e5e280d /src | |
parent | fdb79e487c3c02d3e30ce48cc2ec62dac27cbb7e (diff) | |
download | skyhanni-0d8fb26e0c79722b6b2235cce351aeb65aa3ee15.tar.gz skyhanni-0d8fb26e0c79722b6b2235cce351aeb65aa3ee15.tar.bz2 skyhanni-0d8fb26e0c79722b6b2235cce351aeb65aa3ee15.zip |
only allow debug toggle in debug mode
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/AdvancedPlayerList.kt | 4 |
1 files changed, 1 insertions, 3 deletions
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) { |