Sets player hat visibility to true (#288)
Some checks failed
CI Tests & Publish / build (push) Failing after 2m1s

Ensures that player hats are always visible in the tab list.
This change sets the `showHat` property to true when creating tab list entries.
This commit is contained in:
Super_Crafting 2025-07-25 15:58:27 +02:00 committed by GitHub
parent 446eb824b4
commit beed377676
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -345,6 +345,7 @@ public class PlayerTabList {
.displayName(displayName) .displayName(displayName)
.latency(Math.max((int) player.getPlayer().getPing(), 0)) .latency(Math.max((int) player.getPlayer().getPing(), 0))
.tabList(tabList) .tabList(tabList)
.showHat(true)
.build(); .build();
} }
@ -362,6 +363,7 @@ public class PlayerTabList {
.displayName(displayName) .displayName(displayName)
.latency(Math.max((int) player.getPlayer().getPing(), 0)) .latency(Math.max((int) player.getPlayer().getPing(), 0))
.tabList(tabList) .tabList(tabList)
.showHat(true)
.build(); .build();
} }