Skip to content

Commit b52ca1c

Browse files
jaglitegrannTwoTenPvP
authored andcommitted
fix(spawning): Spawn buffer corrupted for new player object sent from handle approval. (#252)
1 parent cd58b2f commit b52ca1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MLAPI/Core/NetworkingManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,9 @@ internal void HandleApproval(ulong clientId, ulong? prefabHash, bool approved, V
11671167
writer.WriteUInt64Packed(ConnectedClients[clientId].PlayerObject.GetComponent<NetworkedObject>().NetworkId);
11681168
writer.WriteUInt64Packed(clientId);
11691169

1170+
//Does not have a parrent
1171+
writer.WriteBool(false);
1172+
11701173
if (NetworkConfig.UsePrefabSync)
11711174
{
11721175
writer.WriteUInt64Packed(prefabHash == null ? NetworkConfig.PlayerPrefabHash : prefabHash.Value);

0 commit comments

Comments
 (0)