Fix skins not loading on connection
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user