From c171bfe76c6887785d0ed1ed7b5a5a76b3ff9b75 Mon Sep 17 00:00:00 2001 From: CWX Date: Sun, 12 Jan 2025 16:53:46 +0000 Subject: [PATCH] fix injections, fix logging --- Core/Callbacks/DialogueCallbacks.cs | 1 + Core/Callbacks/InsuranceCallbacks.cs | 1 + Core/Callbacks/RagfairCallbacks.cs | 1 + Core/Controllers/WeatherController.cs | 1 + Core/Services/RaidWeatherService.cs | 1 + 5 files changed, 5 insertions(+) diff --git a/Core/Callbacks/DialogueCallbacks.cs b/Core/Callbacks/DialogueCallbacks.cs index c9a189de..b6180142 100644 --- a/Core/Callbacks/DialogueCallbacks.cs +++ b/Core/Callbacks/DialogueCallbacks.cs @@ -9,6 +9,7 @@ using Core.Utils; namespace Core.Callbacks; [Injectable(InjectableTypeOverride = typeof(OnUpdate), TypePriority = OnUpdateOrder.DialogCallbacks)] +[Injectable(InjectableTypeOverride = typeof(DialogueCallbacks))] public class DialogueCallbacks : OnUpdate { protected HashUtil _hashUtil; diff --git a/Core/Callbacks/InsuranceCallbacks.cs b/Core/Callbacks/InsuranceCallbacks.cs index 40a5426f..c1bb90e5 100644 --- a/Core/Callbacks/InsuranceCallbacks.cs +++ b/Core/Callbacks/InsuranceCallbacks.cs @@ -14,6 +14,7 @@ using Core.Utils; namespace Core.Callbacks; [Injectable(InjectableTypeOverride = typeof(OnUpdate), TypePriority = OnUpdateOrder.InsuranceCallbacks)] +[Injectable(InjectableTypeOverride = typeof(InsuranceCallbacks))] public class InsuranceCallbacks : OnUpdate { protected InsuranceController _insuranceController; diff --git a/Core/Callbacks/RagfairCallbacks.cs b/Core/Callbacks/RagfairCallbacks.cs index abca089d..e42c0f7d 100644 --- a/Core/Callbacks/RagfairCallbacks.cs +++ b/Core/Callbacks/RagfairCallbacks.cs @@ -14,6 +14,7 @@ namespace Core.Callbacks; [Injectable(InjectableTypeOverride = typeof(OnLoad), TypePriority = OnLoadOrder.RagfairCallbacks)] [Injectable(InjectableTypeOverride = typeof(OnUpdate), TypePriority = OnUpdateOrder.RagfairCallbacks)] +[Injectable(InjectableTypeOverride = typeof(RagfairCallbacks))] public class RagfairCallbacks : OnLoad, OnUpdate { protected HttpResponseUtil _httpResponseUtil; diff --git a/Core/Controllers/WeatherController.cs b/Core/Controllers/WeatherController.cs index c80d6f1d..8cc014d3 100644 --- a/Core/Controllers/WeatherController.cs +++ b/Core/Controllers/WeatherController.cs @@ -7,6 +7,7 @@ using Core.Models.Spt.Config; using Core.Models.Spt.Weather; using Core.Servers; using Core.Services; +using ILogger = Core.Models.Utils.ILogger; namespace Core.Controllers; diff --git a/Core/Services/RaidWeatherService.cs b/Core/Services/RaidWeatherService.cs index b2464eb2..6ad3e87f 100644 --- a/Core/Services/RaidWeatherService.cs +++ b/Core/Services/RaidWeatherService.cs @@ -6,6 +6,7 @@ using Core.Models.Enums; using Core.Models.Spt.Config; using Core.Servers; using Core.Utils; +using ILogger = Core.Models.Utils.ILogger; namespace Core.Services;