mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
Fix story autosave
This commit is contained in:
parent
5e40ae4e29
commit
3e11eca704
3 changed files with 3 additions and 10 deletions
|
@ -155,13 +155,7 @@ namespace ShiftOS.Server
|
|||
Console.WriteLine("FUCK. Something HORRIBLE JUST HAPPENED.");
|
||||
};
|
||||
|
||||
AppDomain.CurrentDomain.UnhandledException += (o, a) =>
|
||||
{
|
||||
if(server.IsOnline == true)
|
||||
server.Stop();
|
||||
System.Diagnostics.Process.Start("ShiftOS.Server.exe");
|
||||
};
|
||||
|
||||
|
||||
server.OnReceived += (o, a) =>
|
||||
{
|
||||
var obj = a.Data.Object;
|
||||
|
@ -208,7 +202,6 @@ namespace ShiftOS.Server
|
|||
task.Wait();
|
||||
*/
|
||||
|
||||
RandomUserGenerator.StartThread();
|
||||
|
||||
while (server.IsOnline)
|
||||
{
|
||||
|
|
|
@ -368,7 +368,7 @@ namespace ShiftOS.WinForms.Stories
|
|||
SetProgress(i);
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
Story.Start("downloader");
|
||||
SaveSystem.CurrentSave.StoriesExperienced.Add("downloader");
|
||||
SetProgress(0);
|
||||
SetStatus("Dependencies installed.");
|
||||
Thread.Sleep(2000);
|
||||
|
|
|
@ -154,7 +154,7 @@ namespace ShiftOS.Engine
|
|||
Method = mth,
|
||||
AutoComplete = true,
|
||||
};
|
||||
SaveSystem.CurrentSave.Password = Context.Id;
|
||||
SaveSystem.CurrentSave.PickupPoint = Context.Id;
|
||||
Context.OnComplete += () =>
|
||||
{
|
||||
StoryComplete?.Invoke(stid);
|
||||
|
|
Loading…
Reference in a new issue