Skip to content

Commit

Permalink
Merge pull request #111 from Foxikle/fix/players-in-tab
Browse files Browse the repository at this point in the history
Fix/players in tab
  • Loading branch information
webhead1104 authored Jun 19, 2024
2 parents 03e9005 + d60d3de commit a85f9c0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minestom.server.entity.Player;
import net.minestom.server.network.packet.server.ServerPacket;
import net.minestom.server.network.packet.server.play.PlayerInfoUpdatePacket;
import net.minestom.server.utils.PacketUtils;

import java.util.*;

Expand Down Expand Up @@ -35,7 +36,7 @@ public PlayerListManager() {
*/
public void setupPlayer(Player player) {
// remove them from the player list, but keep skin data
player.sendPacket(new PlayerInfoUpdatePacket(
PacketUtils.broadcastPlayPacket(new PlayerInfoUpdatePacket(
PlayerInfoUpdatePacket.Action.UPDATE_LISTED,
new PlayerInfoUpdatePacket.Entry(player.getUuid(), player.getUsername(), List.of(
new PlayerInfoUpdatePacket.Property("textures", player.getSkin().textures(), player.getSkin().signature())
Expand Down

0 comments on commit a85f9c0

Please sign in to comment.