aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-18 11:22:19 -0500
committerMichael <[email protected]>2017-02-18 11:22:19 -0500
commit5c025fd165755a7801c51ff263dbc12a7cdab4d6 (patch)
treef37dedf9f666fd810f8c5caccb73aa0fef9b4e33 /ShiftOS_TheReturn
parent30dbf1ecb94ecbc84cb71eba9936ee050d040b64 (diff)
downloadshiftos_thereturn-5c025fd165755a7801c51ff263dbc12a7cdab4d6.tar.gz
shiftos_thereturn-5c025fd165755a7801c51ff263dbc12a7cdab4d6.tar.bz2
shiftos_thereturn-5c025fd165755a7801c51ff263dbc12a7cdab4d6.zip
InvokeOnWorkerThread Michael...
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/ServerManager.cs5
1 files changed, 4 insertions, 1 deletions
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();
}
}