From 5c025fd165755a7801c51ff263dbc12a7cdab4d6 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 18 Feb 2017 11:22:19 -0500 Subject: [PATCH] InvokeOnWorkerThread Michael... --- ShiftOS_TheReturn/ServerManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ShiftOS_TheReturn/ServerManager.cs b/ShiftOS_TheReturn/ServerManager.cs index 7c5b8ef..3059391 100644 --- a/ShiftOS_TheReturn/ServerManager.cs +++ b/ShiftOS_TheReturn/ServerManager.cs @@ -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(); } }