mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
reset game save
This commit is contained in:
parent
126a4636fc
commit
5d94fcdb2d
@ -28,6 +28,14 @@ namespace QSB.SaveSync.Events
|
||||
|
||||
public override void OnReceiveRemote(bool isHost, GameStateMessage message)
|
||||
{
|
||||
if (QSBSceneManager.CurrentScene != OWScene.TitleScreen)
|
||||
{
|
||||
DebugLog.ToConsole($"Error - Treid to handle GameStateEvent when not in TitleScreen!", OWML.Common.MessageType.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
PlayerData.ResetGame();
|
||||
|
||||
var gameSave = StandaloneProfileManager.SharedInstance.currentProfileGameSave;
|
||||
gameSave.loopCount = message.LoopCount;
|
||||
gameSave.knownFrequencies = message.KnownFrequencies;
|
||||
|
Loading…
Reference in New Issue
Block a user