-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Before You Report
- I have searched for existing reports of this bug, and this bug report is unique.
Version
1.1.6, this is specifically a base game bug for the 14.2.6 beta
Description
When you use an event like PlayerLeft and then construct a footprint from that event, your code will now throw an error despite it still working last update. This happens due to (see title)
To Reproduce
subscribe to PlayerLeft event and then call the ReferenceHub::connectionToClient.address getter in 14.2.6
Expected Behavior
No error should happen
Additional Information
From what I can see in the base game code from previous SL versions, SL never actually cleared out the Peers array (now dictionary) in the custom mirror server implementation, I think this meant that peers actually stayed cached even after one disconnected or something? I dont fully know to be honest, you'd have to ask somebody who worked on the new custom mirror stuff tbh. Anyways, the new implementation actively removes peers from the dictionary so if I was correct, then really you could fix this by just not trying to remove peers from the dictionary when they disconnect, or you could just add a check to the footprint constructor to fix my use case specifically