public static IEnumerator LoadAsync() { WaitScreen.Item item = WaitScreen.Add("Loading Multiplayer", null); WaitScreen.ShowImmediately(); Main.StartSession(); yield return(new WaitUntil(() => Main.InitialSyncCompleted)); WaitScreen.Remove(item); SetLoadingComplete(); }
public static IEnumerator LoadAsync() { WaitScreen.Item item = WaitScreen.Add("Loading Multiplayer", null); WaitScreen.ShowImmediately(); Main.StartSession(); yield return(new WaitUntil(() => Main.InitialSyncCompleted == true)); PropertyInfo property = PAXTerrainController.main.GetType().GetProperty("isWorking"); property.SetValue(PAXTerrainController.main, false, null); WaitScreen.Remove(item); }