Fix reflection for GameVersions
This commit is contained in:
@@ -82,7 +82,7 @@ public class LauncherController
|
||||
{
|
||||
var result = new Dictionary<string, string>();
|
||||
var dbProfiles = _databaseService.GetProfiles();
|
||||
foreach (var templatesProperty in typeof(ProfileTemplates).GetProperties())
|
||||
foreach (var templatesProperty in typeof(ProfileTemplates).GetProperties().Where(p => p.CanWrite == true))
|
||||
{
|
||||
var propertyValue = templatesProperty.GetValue(dbProfiles);
|
||||
if (propertyValue == null) {
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using Core.Annotations;
|
||||
using Core.Models.Eft.Common;
|
||||
using Core.Models.Eft.Common.Tables;
|
||||
|
||||
namespace Core.Helpers;
|
||||
|
||||
[Injectable]
|
||||
public class ItemHelper
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -34,8 +34,8 @@ public class ProfileHelper
|
||||
ItemHelper itemHelper,
|
||||
TimeUtil timeUtil,
|
||||
LocalisationService localisationService,
|
||||
InventoryConfig inventoryConfig,
|
||||
HashUtil hashUtil
|
||||
HashUtil hashUtil,
|
||||
ConfigServer configServer
|
||||
)
|
||||
{
|
||||
_cloner = cloner;
|
||||
@@ -45,8 +45,8 @@ public class ProfileHelper
|
||||
_itemHelper = itemHelper;
|
||||
_timeUtil = timeUtil;
|
||||
_localisationService = localisationService;
|
||||
_inventoryConfig = inventoryConfig;
|
||||
_hashUtil = hashUtil;
|
||||
_inventoryConfig = configServer.GetConfig<InventoryConfig>(ConfigTypes.INVENTORY);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user