Skip to content

Commit

Permalink
fix: NetworkId recycle settings not being included in base64 export
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoTenPvP committed Apr 18, 2019
1 parent c867868 commit 49292f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MLAPI/Configuration/NetworkConfig.cs
Expand Up @@ -225,6 +225,8 @@ public string ToBase64()
writer.WriteBits((byte)config.RpcHashSize, 3);
writer.WriteBool(ForceSamePrefabs);
writer.WriteBool(UsePrefabSync);
writer.WriteBool(RecycleNetworkIds);
writer.WriteSinglePacked(NetworkIdRecycleDelay);
writer.WriteBool(EnableNetworkedVar);
stream.PadStream();

Expand Down Expand Up @@ -270,6 +272,8 @@ public void FromBase64(string base64)
config.RpcHashSize = (HashSize)reader.ReadBits(3);
config.ForceSamePrefabs = reader.ReadBool();
config.UsePrefabSync = reader.ReadBool();
config.RecycleNetworkIds = reader.ReadBool();
config.NetworkIdRecycleDelay = reader.ReadSinglePacked();
config.EnableNetworkedVar = reader.ReadBool();
}
}
Expand Down

0 comments on commit 49292f3

Please sign in to comment.