dont SetSecondsRemaining if loop count is not the same

This commit is contained in:
JohnCorby 2022-08-24 16:08:05 -07:00
parent 25bbcb10db
commit df75b8c56a

View File

@ -146,7 +146,11 @@ public class WakeUpSync : NetworkBehaviour
{
_serverTime = time;
_serverLoopCount = count;
QSBPatch.RemoteCall(() => TimeLoop.SetSecondsRemaining(secondsRemaining));
// prevents accidental supernova at start of loop
if (_serverLoopCount == PlayerData.LoadLoopCount())
{
QSBPatch.RemoteCall(() => TimeLoop.SetSecondsRemaining(secondsRemaining));
}
}
private void WakeUpOrSleep()