diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-07 20:27:25 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-07 20:27:25 +0200 |
commit | fdb79e487c3c02d3e30ce48cc2ec62dac27cbb7e (patch) | |
tree | b06088503b1f65a355379c7e99be23b87ef48a80 | |
parent | 88858a279db0e9c66c1a736362f058d8c936ffa3 (diff) | |
download | skyhanni-fdb79e487c3c02d3e30ce48cc2ec62dac27cbb7e.tar.gz skyhanni-fdb79e487c3c02d3e30ce48cc2ec62dac27cbb7e.tar.bz2 skyhanni-fdb79e487c3c02d3e30ce48cc2ec62dac27cbb7e.zip |
fixed icon hide logic bug
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java index fcdc3ef38..9eaa1ec7c 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java @@ -573,7 +573,7 @@ public class MiscConfig { public boolean reverseSort = false; @Expose - @ConfigOption(name = "Hide Player Icons", desc = "Hide the icons of player in the tab list.") + @ConfigOption(name = "Hide Player Icons", desc = "Hide the icons/skins of player in the tab list.") @ConfigEditorBoolean public boolean hidePlayerIcons = false; 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 b653bd472..d5cc7f875 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 @@ -105,8 +105,8 @@ object TabListRenderer { for (tabLine in column.lines) { val savedX = middleX - val isEnabled = !config.advancedPlayerList.hidePlayerIcons && !AdvancedPlayerList.ignoreCustomTabList() - if (tabLine.type == TabStringType.PLAYER && isEnabled) { + val hideIcons = config.advancedPlayerList.hidePlayerIcons && !AdvancedPlayerList.ignoreCustomTabList() + if (tabLine.type == TabStringType.PLAYER && !hideIcons) { val playerInfo = tabLine.getInfo() if (playerInfo != null) { minecraft.textureManager.bindTexture(playerInfo.locationSkin) |