From 2267e1078e67d311181d374239c2d62f93c76c69 Mon Sep 17 00:00:00 2001 From: Yui Date: Wed, 5 Nov 2025 16:17:04 -0300 Subject: [PATCH] fix(mod): fixed profiles being corrupted after restart --- Server/Mod.cs | 3 +-- Server/Services/WeebLocaleService.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Server/Mod.cs b/Server/Mod.cs index fe2d846..23c0775 100644 --- a/Server/Mod.cs +++ b/Server/Mod.cs @@ -8,7 +8,7 @@ using WeebSights.Services; namespace WeebSights; -[Injectable(TypePriority = OnLoadOrder.PostSptModLoader + 1)] +[Injectable(TypePriority = OnLoadOrder.PostDBModLoader + 1)] public class Mod(ISptLogger logger, WeebItemService weebItemService, WeebTraderService weebTraderService, @@ -18,7 +18,6 @@ public class Mod(ISptLogger logger, { var stopWatch = Stopwatch.StartNew(); var currentAssemblyPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); - logger.Info($"[Weeb Iron Sights] Loaded in {currentAssemblyPath}"); if (!weebLocaleService.TryLoadLocales(Path.Join(currentAssemblyPath, "/db/locales/en.json"), out var locales)) { logger.Error("[Weeb Iron Sights] Failed to load locales. Names might be weird"); diff --git a/Server/Services/WeebLocaleService.cs b/Server/Services/WeebLocaleService.cs index 70caf73..1f69828 100644 --- a/Server/Services/WeebLocaleService.cs +++ b/Server/Services/WeebLocaleService.cs @@ -6,7 +6,7 @@ using WeebSights.Models; namespace WeebSights.Services; -[Injectable(TypePriority = OnLoadOrder.PostDBModLoader + 4)] +[Injectable] public class WeebLocaleService(JsonUtil jsonUtil) { public bool TryLoadLocales(string filePath, out Dictionary outputObject)