Fix for MP
This commit is contained in:
@@ -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); }
|
||||
|
||||
|
@@ -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")]
|
||||
|
@@ -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) { }
|
||||
|
Reference in New Issue
Block a user