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

@@ -77,7 +77,8 @@ namespace Torch.Server.ViewModels
public List<ulong> Banned { get => _config.Banned; set => SetValue(x => _config.Banned = x, value); }
public List<ulong> Mods { get => _config.Mods; set => SetValue(x => _config.Mods = x, value); }
//TODO: FIX
//public List<ulong> Mods { get => _config.Mods; set => SetValue(x => _config.Mods = x, value); }
public int AsteroidAmount { get => _config.AsteroidAmount; set => SetValue(x => _config.AsteroidAmount = x, value); }

View File

@@ -59,7 +59,7 @@ namespace Torch.Server.ViewModels
/// <see cref="VRage.Game.MyObjectBuilder_SessionSettings.EnableBlockLimits" />
[Display(Name = "Enable block limits")]
public System.Boolean EnableBlockLimits { get => _settings.EnableBlockLimits; set => SetValue(ref _settings.EnableBlockLimits, value); }
public MyBlockLimitsEnabledEnum EnableBlockLimits { get => _settings.BlockLimitsEnabled; set => SetValue(ref _settings.BlockLimitsEnabled, value); }
/// <see cref="VRage.Game.MyObjectBuilder_SessionSettings.EnableRemoteBlockRemoval" />
[Display(Name = "Enable remote removal of owned blocks")]

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SteamSDK;
using Steamworks;
namespace Torch.Server.ViewModels
{
@@ -15,7 +15,7 @@ namespace Torch.Server.ViewModels
public SteamUserViewModel(ulong id)
{
SteamId = id;
Name = SteamAPI.Instance.Friends.GetPersonaName(id);
Name = SteamFriends.GetFriendPersonaName(new CSteamID(id));
}
public SteamUserViewModel() : this(0) { }