InvokeOnWorkerThread Michael...

This commit is contained in:
Michael 2017-02-18 11:22:19 -05:00
parent 30dbf1ecb9
commit 5c025fd165

View file

@ -132,7 +132,10 @@ namespace ShiftOS.Engine
if(args["username"] as string == SaveSystem.CurrentSave.Username)
{
SaveSystem.CurrentSave.Codepoints += (long)args["amount"];
Infobox.Show($"MUD Control Centre", $"Someone bought an item in your shop, and they have paid {args["amount"]}, and as such, you have been granted these Codepoints.");
Desktop.InvokeOnWorkerThread(new Action(() =>
{
Infobox.Show($"MUD Control Centre", $"Someone bought an item in your shop, and they have paid {args["amount"]}, and as such, you have been granted these Codepoints.");
}));
SaveSystem.SaveGame();
}
}