aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt2
2 files changed, 6 insertions, 1 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 84a8dbacb..343762d32 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java
@@ -565,6 +565,11 @@ public class MiscConfig {
public boolean reverseSort = false;
@Expose
+ @ConfigOption(name = "Hide Player Icons", desc = "Hide the icons of player in the tab list.")
+ @ConfigEditorBoolean
+ public boolean hidePlayerIcons = false;
+
+ @Expose
@ConfigOption(name = "Hide Rank Color", desc = "Hide the player rank color.")
@ConfigEditorBoolean
public boolean hideRankColor = 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 8c4640603..57867b0dd 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,7 +105,7 @@ object TabListRenderer {
for (tabLine in column.lines) {
val savedX = middleX
- if (tabLine.type == TabStringType.PLAYER) {
+ if (tabLine.type == TabStringType.PLAYER && !config.hidePlayerIcons) {
val playerInfo = tabLine.getInfo()
if (playerInfo != null) {
minecraft.textureManager.bindTexture(playerInfo.locationSkin)