mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-03 17:38:30 +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 OWML.Utils;
|
||||||
|
using QSB.Utility;
|
||||||
using System;
|
using System;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
@ -52,6 +53,11 @@ namespace QSB.TimeSync
|
|||||||
|
|
||||||
private void StartTimeSync(TimeSyncType type, Enum reason)
|
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;
|
_currentType = type;
|
||||||
_currentReason = reason;
|
_currentReason = reason;
|
||||||
_startTime = Time.timeSinceLevelLoad;
|
_startTime = Time.timeSinceLevelLoad;
|
||||||
|
Loading…
Reference in New Issue
Block a user