mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-28 18:25:18 +00:00
dont SetSecondsRemaining if loop count is not the same
This commit is contained in:
parent
25bbcb10db
commit
df75b8c56a
@ -146,7 +146,11 @@ public class WakeUpSync : NetworkBehaviour
|
|||||||
{
|
{
|
||||||
_serverTime = time;
|
_serverTime = time;
|
||||||
_serverLoopCount = count;
|
_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()
|
private void WakeUpOrSleep()
|
||||||
|
Loading…
Reference in New Issue
Block a user