Skip to content

Commit 93c8481

Browse files
authored
session/session_list.go: Populate skin full id if empty. (#1121)
1 parent c6a3bd7 commit 93c8481

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/session/session_list.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ func skinToProtocol(s skin.Skin) protocol.Skin {
113113
animations = append(animations, protocolAnim)
114114
}
115115

116+
fullID := s.FullID
117+
if fullID == "" {
118+
fullID = uuid.New().String()
119+
}
116120
return protocol.Skin{
117121
PlayFabID: s.PlayFabID,
118122
SkinID: uuid.New().String(),
@@ -126,7 +130,7 @@ func skinToProtocol(s skin.Skin) protocol.Skin {
126130
SkinGeometry: s.Model,
127131
PersonaSkin: s.Persona,
128132
CapeID: uuid.New().String(),
129-
FullID: s.FullID,
133+
FullID: fullID,
130134
Animations: animations,
131135
Trusted: true,
132136
OverrideAppearance: true,

0 commit comments

Comments
 (0)