mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
dont start timesyncui when not in universe
This commit is contained in:
parent
4365d89119
commit
56538cd181
@ -1,4 +1,5 @@
|
||||
using OWML.Utils;
|
||||
using QSB.Utility;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@ -52,6 +53,11 @@ namespace QSB.TimeSync
|
||||
|
||||
private void StartTimeSync(TimeSyncType type, Enum reason)
|
||||
{
|
||||
if (!QSBSceneManager.IsInUniverse)
|
||||
{
|
||||
DebugLog.ToConsole("Error - Tried to start time sync UI when not in universe!", OWML.Common.MessageType.Error);
|
||||
return;
|
||||
}
|
||||
_currentType = type;
|
||||
_currentReason = reason;
|
||||
_startTime = Time.timeSinceLevelLoad;
|
||||
|
Loading…
Reference in New Issue
Block a user