Syrchalis / SetUpCamp

Allows creating camps anywhere
14 stars 12 forks source link

Change use of System.Random to Verse.Rand for compatibility with Multiplayer #7

Closed ghost closed 4 years ago

ghost commented 5 years ago

For instance, here: https://github.com/Syrchalis/SetUpCamp/blob/9d0521a8534ccb81cb964b9ebe7454390f0a1460/Source/SetupCamp/SetUpCampCore.cs#L142

The Multiplayer mod will desync when System.Random or Unity.Random is used because there's no way to prevent clients from receiving a different results. However, Multiplayer is able to encapsulate the use of Verse.Rand.

Syrchalis commented 4 years ago

Fixed.