fix issue where all objects were set to owner 1 on start of clients

This commit is contained in:
Mister_Nebula 2021-02-09 11:01:21 +00:00
parent c5d8a25922
commit 643f1c361d
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,7 @@ namespace QSB.QuantumSync.Events
public override bool CheckMessage(bool isServer, QuantumAuthorityMessage message)
{
if (!QSBCore.HasWokenUp)
if (!QuantumManager.Instance.IsReady)
{
return false;
}

View File

@ -20,6 +20,7 @@ namespace QSB.QuantumSync
private List<QuantumSocket> _quantumSockets;
private List<QuantumShuffleObject> _quantumShuffleObjects;
public QuantumShrine Shrine;
public bool IsReady;
public void Awake()
{
@ -40,6 +41,7 @@ namespace QSB.QuantumSync
{
Shrine = Resources.FindObjectsOfTypeAll<QuantumShrine>().First();
}
IsReady = true;
}
public void OnRenderObject()