aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-07 20:27:25 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-07 20:27:25 +0200
commitfdb79e487c3c02d3e30ce48cc2ec62dac27cbb7e (patch)
treeb06088503b1f65a355379c7e99be23b87ef48a80 /src/main/java/at/hannibal2/skyhanni
parent88858a279db0e9c66c1a736362f058d8c936ffa3 (diff)
downloadskyhanni-fdb79e487c3c02d3e30ce48cc2ec62dac27cbb7e.tar.gz
skyhanni-fdb79e487c3c02d3e30ce48cc2ec62dac27cbb7e.tar.bz2
skyhanni-fdb79e487c3c02d3e30ce48cc2ec62dac27cbb7e.zip
fixed icon hide logic bug
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt4
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)