From a79e5f17ec51a560f3f501ac523a90771ee90f15 Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 26 Sep 2024 14:13:30 +0100 Subject: [PATCH] Fixed glcass references --- project/SPT.Custom/Patches/AllowAirdropsInPvEPatch.cs | 2 +- project/SPT.Debugging/Patches/PMCBotSpawnLocationPatch.cs | 2 +- .../Patches/MainMenu/EnableRefIntermScreenPatch.cs | 2 +- .../Patches/MainMenu/PVEModeWelcomeMessagePatch.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project/SPT.Custom/Patches/AllowAirdropsInPvEPatch.cs b/project/SPT.Custom/Patches/AllowAirdropsInPvEPatch.cs index ddc839f..5a67da2 100644 --- a/project/SPT.Custom/Patches/AllowAirdropsInPvEPatch.cs +++ b/project/SPT.Custom/Patches/AllowAirdropsInPvEPatch.cs @@ -11,7 +11,7 @@ namespace SPT.Custom.Patches { protected override MethodBase GetTargetMethod() { - return typeof(GClass2304).GetProperty(nameof(GClass2304.Int32_0)).GetGetMethod(); + return typeof(GClass2333).GetProperty(nameof(GClass2333.Int32_0)).GetGetMethod(); } [PatchPrefix] diff --git a/project/SPT.Debugging/Patches/PMCBotSpawnLocationPatch.cs b/project/SPT.Debugging/Patches/PMCBotSpawnLocationPatch.cs index d375622..2d972f7 100644 --- a/project/SPT.Debugging/Patches/PMCBotSpawnLocationPatch.cs +++ b/project/SPT.Debugging/Patches/PMCBotSpawnLocationPatch.cs @@ -61,7 +61,7 @@ namespace SPT.Debugging.Patches } [PatchPrefix] - public static bool PatchPrefix(GClass1575 __instance, BotCreationDataClass data) + public static bool PatchPrefix(GClass1602 __instance, BotCreationDataClass data) { var firstBotRole = data.Profiles[0].Info.Settings.Role; if (firstBotRole is not (WildSpawnType.pmcBEAR or WildSpawnType.pmcUSEC)) diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefIntermScreenPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefIntermScreenPatch.cs index 68f7be6..7c4920b 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefIntermScreenPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefIntermScreenPatch.cs @@ -12,7 +12,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu { protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(MerchantsList.Class2758), nameof(MerchantsList.Class2758.method_0)); + return AccessTools.Method(typeof(MerchantsList.Class2783), nameof(MerchantsList.Class2783.method_0)); } [PatchPrefix] diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/PVEModeWelcomeMessagePatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/PVEModeWelcomeMessagePatch.cs index 0b68170..3007894 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/PVEModeWelcomeMessagePatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/PVEModeWelcomeMessagePatch.cs @@ -8,7 +8,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu { protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(GClass1926), nameof(GClass1926.GetBoolForProfile)); + return AccessTools.Method(typeof(GClass1955), nameof(GClass1955.GetBoolForProfile)); } [PatchPrefix]