Fix skins not loading on connection

This commit is contained in:
2026-10-02 13:26:00 -03:00
parent cd07d441b2
commit 7b3cdd925e
2 changed files with 16 additions and 1 deletions
+9
View File
@@ -733,6 +733,15 @@ export class GameServer {
if (player.worn_sent !== "[]") {
this.#send(player, { type: "player_worn", id: player.id, worn: player.worn_list() });
}
// and their own skin, from when they last played
if (player.skin) {
this.#send(player, {
type: "player_skin",
id: player.id,
skin: player.skin,
slim: player.slim || undefined,
});
}
// the chunks come with the next ticks
this.#update_view(player);
this.#sync(player);