mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Hotfix servers not working due to auto pause.
This commit is contained in:
@@ -490,7 +490,7 @@ namespace Robust.Server
|
||||
|
||||
_mainLoop.Tick += (sender, args) => Update(args);
|
||||
|
||||
_mainLoop.Update += (sender, args) => { ServerUpTime.Set(_uptimeStopwatch.Elapsed.TotalSeconds); };
|
||||
_mainLoop.Update += (sender, args) => FrameUpdate(args);
|
||||
|
||||
// set GameLoop.Running to false to return from this function.
|
||||
_time.Paused = _autoPause;
|
||||
@@ -681,7 +681,11 @@ namespace Robust.Server
|
||||
{
|
||||
_stateManager.SendGameStateUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
private void FrameUpdate(FrameEventArgs frameEventArgs)
|
||||
{
|
||||
ServerUpTime.Set(_uptimeStopwatch.Elapsed.TotalSeconds);
|
||||
_watchdogApi.Heartbeat();
|
||||
_hubManager.Heartbeat();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user