6 Years Ago
Fixed a bug that was as follows: Server events: 1. ZGameMode client player character created. It has no children yet. 2. Character spawn serialization is queued on NetworkEntityManager (but not sent yet). 3. Character is set as the NetworkSubscriber subscriber. 4. Full snapshot is sent as a result. Character with no children is serialized. 5. Fists selected and assigned as child of character. 6. The queued spawn from #2 is sent. Character has one child (fists). Client receives the first spawn with no children, and ignores the second one because the entity already exists. Fix: Clear the spawn and update queues when sending a snapshot. Everything's getting sent anyway.