Set MLAPI Relay Use to be off by default

This commit is contained in:
Julia Butenhoff 2022-04-10 00:32:34 -05:00
parent 896b57252b
commit dd537fdaf5
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ MonoBehaviour:
ServerWebsocketListenPort: 8887
SupportWebsocket: 0
Channels: []
UseMLAPIRelay: 1
UseMLAPIRelay: 0
MLAPIRelayAddress: 65.30.15.214
MLAPIRelayPort: 8888
MessageSendMode: 0

View File

@ -46,7 +46,7 @@ public class GameNetPortal : MonoBehaviour {
private void SetOptions() {
// Set the Use MLAPI Relay Option if it doesn't yet exist
if (!PlayerPrefs.HasKey("UseMLAPIRelay")) {
PlayerPrefs.SetInt("UseMLAPIRelay", 1);
PlayerPrefs.SetInt("UseMLAPIRelay", 0);
} else {
if (PlayerPrefs.GetInt("UseMLAPIRelay") == 0) {
GameObject.FindGameObjectWithTag("NetworkManager").GetComponent<UNetTransport>().UseMLAPIRelay = false;