diff options
| author | Michael <[email protected]> | 2017-02-18 11:22:19 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-18 11:22:19 -0500 |
| commit | 5c025fd165755a7801c51ff263dbc12a7cdab4d6 (patch) | |
| tree | f37dedf9f666fd810f8c5caccb73aa0fef9b4e33 | |
| parent | 30dbf1ecb94ecbc84cb71eba9936ee050d040b64 (diff) | |
| download | shiftos_thereturn-5c025fd165755a7801c51ff263dbc12a7cdab4d6.tar.gz shiftos_thereturn-5c025fd165755a7801c51ff263dbc12a7cdab4d6.tar.bz2 shiftos_thereturn-5c025fd165755a7801c51ff263dbc12a7cdab4d6.zip | |
InvokeOnWorkerThread Michael...
| -rw-r--r-- | ShiftOS_TheReturn/ServerManager.cs | 5 |
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(); } } |
