This commit is contained in:
JohnCorby 2022-08-14 17:11:05 -07:00
parent c55bc591a4
commit bec2431003

View File

@ -1,15 +1,17 @@
using QSB.Messaging;
using QSB.Patches;
namespace QSB.Utility.Messages;
public class DebugTriggerSupernovaMessage : QSBMessage
{
public override void OnReceiveLocal() => OnReceiveRemote();
public override void OnReceiveRemote()
{
PlayerData.SaveLoopCount(2);
TimeLoop.SetTimeLoopEnabled(true);
TimeLoop._isTimeFlowing = true;
TimeLoop.SetSecondsRemaining(0);
QSBPatch.RemoteCall(() => TimeLoop.SetSecondsRemaining(0));
}
}
}