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)