Do a small pass on SPT's config's to reduce warnings and cleanup (#348)
* Do a small pass on SPT's config's to reduce warnings and cleanup * Revert * Revert EFT models * Set list as null
This commit is contained in:
@@ -3,6 +3,7 @@ using SPTarkov.Server.Core.Controllers;
|
||||
using SPTarkov.Server.Core.Models.Enums;
|
||||
using SPTarkov.Server.Core.Models.Spt.Config;
|
||||
using SPTarkov.Server.Core.Models.Spt.Logging;
|
||||
using SPTarkov.Server.Core.Models.Spt.Mod;
|
||||
using SPTarkov.Server.Core.Servers;
|
||||
using SPTarkov.Server.Core.Services;
|
||||
using SPTarkov.Server.Core.Utils;
|
||||
@@ -14,8 +15,8 @@ public class ClientLogCallbacks(
|
||||
HttpResponseUtil _httpResponseUtil,
|
||||
ClientLogController _clientLogController,
|
||||
ConfigServer _configServer,
|
||||
LocalisationService _localisationService
|
||||
// ModLoadOrder _modLoadOrder // TODO: needs implementing
|
||||
LocalisationService _localisationService,
|
||||
IReadOnlyList<SptMod> _loadedMods
|
||||
)
|
||||
{
|
||||
/// <summary>
|
||||
@@ -50,7 +51,7 @@ public class ClientLogCallbacks(
|
||||
data.ReleaseSummaryText = _localisationService.GetText("release-summary");
|
||||
data.IsBeta = ProgramStatics.ENTRY_TYPE() is EntryType.BLEEDING_EDGE or EntryType.BLEEDING_EDGE_MODS;
|
||||
data.IsModdable = ProgramStatics.MODS();
|
||||
data.IsModded = false; // TODO
|
||||
data.IsModded = _loadedMods.Count > 0;
|
||||
|
||||
return new ValueTask<string>(_httpResponseUtil.NoBody(data));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user