mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 09:39:56 +00:00
and here
This commit is contained in:
parent
c55bc591a4
commit
bec2431003
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user