createOtherPlayerMesh never sets userData.type on body/head/hat meshes.
handleServerPlayerReconnected restores emissive by type:
type === "body" → 0x1144aa @ 0.4
else → 0x112266 @ 0.3 (hat values)
Because nothing is tagged, every MeshStandardMaterial child (including the robe/body) takes the hat emissive after a disconnect→reconnect. The player model looks darker/wrong until they leave and rejoin.
Unit characterization: after createOtherPlayerMesh → disconnect → reconnect, the capsule (body) emissive is 0x112266, not 0x1144aa.
Fix: tag body.userData.type = "body" (and hat/head) in createOtherPlayerMesh, matching the reconnect branches.
`createOtherPlayerMesh` never sets `userData.type` on body/head/hat meshes.
`handleServerPlayerReconnected` restores emissive by type:
- `type === "body"` → `0x1144aa` @ 0.4
- else → `0x112266` @ 0.3 (hat values)
Because nothing is tagged, every `MeshStandardMaterial` child (including the robe/body) takes the hat emissive after a disconnect→reconnect. The player model looks darker/wrong until they leave and rejoin.
Unit characterization: after `createOtherPlayerMesh` → disconnect → reconnect, the capsule (body) emissive is `0x112266`, not `0x1144aa`.
Fix: tag `body.userData.type = "body"` (and hat/head) in `createOtherPlayerMesh`, matching the reconnect branches.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
createOtherPlayerMeshnever setsuserData.typeon body/head/hat meshes.handleServerPlayerReconnectedrestores emissive by type:type === "body"→0x1144aa@ 0.40x112266@ 0.3 (hat values)Because nothing is tagged, every
MeshStandardMaterialchild (including the robe/body) takes the hat emissive after a disconnect→reconnect. The player model looks darker/wrong until they leave and rejoin.Unit characterization: after
createOtherPlayerMesh→ disconnect → reconnect, the capsule (body) emissive is0x112266, not0x1144aa.Fix: tag
body.userData.type = "body"(and hat/head) increateOtherPlayerMesh, matching the reconnect branches.Fixed in
spikersoft-angularPR #824 (9150ded4). Closing.