From a5b21c48fd518cd17417a5e5c80d1b4c2da06a41 Mon Sep 17 00:00:00 2001 From: DeidaraMC <117625071+DeidaraMC@users.noreply.github.com> Date: Wed, 3 Jan 2024 12:41:25 -0500 Subject: [PATCH] fix incorrect skin layer setting (#100) This seems to be the right place to send the metadata without interfering with the configuration state (cherry picked from commit 8c3478becae5a7b47a5f9f6459e39a1abd48551b) --- src/main/java/net/minestom/server/entity/Player.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java index de30b0143..ee62fc145 100644 --- a/src/main/java/net/minestom/server/entity/Player.java +++ b/src/main/java/net/minestom/server/entity/Player.java @@ -282,6 +282,8 @@ public class Player extends LivingEntity implements CommandSender, Localizable, sendPacket(new SpawnPositionPacket(respawnPoint, 0)); + sendPacket(getMetadataPacket()); + // Add player to list with spawning skin PlayerSkin profileSkin = null; if (playerConnection instanceof PlayerSocketConnection socketConnection) {