Bugfix send player tab update to all players

This commit is contained in:
Alessandro Proto 2024-10-25 23:59:46 +02:00
parent 5a879b0800
commit 74bc5fd995
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10
loader_version=0.16.7 loader_version=0.16.7
# Mod Properties # Mod Properties
mod_version=1.14.0 mod_version=1.14.1
maven_group=cc.reconnected maven_group=cc.reconnected
archives_base_name=rcc-server archives_base_name=rcc-server

View file

@ -31,7 +31,7 @@ public abstract class ServerPlayNetworkManagerMixin {
private void rccServer$updatePlayerList(CallbackInfo ci) { private void rccServer$updatePlayerList(CallbackInfo ci) {
if(RccServer.CONFIG.enableTabList()) { if(RccServer.CONFIG.enableTabList()) {
var packet = new PlayerListS2CPacket(EnumSet.of(PlayerListS2CPacket.Action.UPDATE_DISPLAY_NAME, PlayerListS2CPacket.Action.UPDATE_LISTED), List.of(this.player)); var packet = new PlayerListS2CPacket(EnumSet.of(PlayerListS2CPacket.Action.UPDATE_DISPLAY_NAME, PlayerListS2CPacket.Action.UPDATE_LISTED), List.of(this.player));
this.sendPacket(packet); this.server.getPlayerManager().sendToAll(packet);
} }
} }