Lakatrazz / BONELAB-Fusion

A multiplayer mod for BONELAB.
MIT License
128 stars 46 forks source link

Fix module registry gap error #45

Closed notnotnotswipez closed 1 year ago

notnotnotswipez commented 1 year ago

Previously, if there was a gap in module registration when the server sends their module registry, the module registration array would look something like:

The gap would cause a silent error upon lookup and module2 (In this case) would never be picked up and found. This PR fixes this by properly skipping the invalid entries.