ZakBerkelaar / MyGame

A WIP multiplayer Terraria like game with a few basic features
GNU General Public License v3.0
0 stars 0 forks source link

Game crashing on server join #8

Open ZakBerkelaar opened 3 years ago

ZakBerkelaar commented 3 years ago

A very common race condition exists where a system packet can arrive before the world packet is received causing a null reference exception when trying the access the world. Although not verified I assume that this could also happen with other packets such as position or new/delete entity as their order is not guaranteed either.