Fix for MP

This commit is contained in:
Brant Martin
2018-05-16 07:09:05 -04:00
parent d8915d1893
commit 38d2f1b62e
22 changed files with 57 additions and 280 deletions

View File

@@ -15,7 +15,6 @@ using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Sandbox.Engine.Networking;
using SteamSDK;
using VRage.Game;
namespace Torch.Server
@@ -45,16 +44,16 @@ namespace Torch.Server
mods = dialog.Result;
}
foreach (var id in mods)
{
var details = SteamHelper.GetItemDetails(id);
if (details.FileType != WorkshopFileType.Community)
continue;
//foreach (var id in mods)
//{
// var details = SteamHelper.GetItemDetails(id);
// if (details.FileType != WorkshopFileType.Community)
// continue;
var item = SteamHelper.GetModItem(details);
var desc = details.Description.Length < 500 ? details.Description : details.Description.Substring(0, 500);
ModList.Items.Add(new ModViewModel(item, desc));
}
// var item = SteamHelper.GetModItem(details);
// var desc = details.Description.Length < 500 ? details.Description : details.Description.Substring(0, 500);
// ModList.Items.Add(new ModViewModel(item, desc));
//}
}
private void modList_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)