From de14574800ed21765e1ac6bba1d19b774f477c29 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 9 Feb 2017 20:32:53 -0500 Subject: Compress shop items on server-side. --- ShiftOS.WinForms/Applications/MUDControlCentre.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ShiftOS.WinForms/Applications/MUDControlCentre.cs') diff --git a/ShiftOS.WinForms/Applications/MUDControlCentre.cs b/ShiftOS.WinForms/Applications/MUDControlCentre.cs index 67c6c17..6336718 100644 --- a/ShiftOS.WinForms/Applications/MUDControlCentre.cs +++ b/ShiftOS.WinForms/Applications/MUDControlCentre.cs @@ -142,10 +142,10 @@ namespace ShiftOS.WinForms.Applications } else if(msg.Name == "shop_additem") { - var contents = JsonConvert.DeserializeObject>(msg.Contents); + var contents = JsonConvert.DeserializeObject>(msg.Contents); if((string)contents["shop"] == CurrentShop.Name) { - CurrentShop.Items.Add(JsonConvert.DeserializeObject(JsonConvert.SerializeObject(contents["itemdata"]))); + CurrentShop.Items.Add(JsonConvert.DeserializeObject(DownloadManager.Decompress(DownloadManager.Decompress(contents["itemdata"] as string)))); this.Invoke(new Action(PopulateShopView)); } } -- cgit v1.2.3