0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 05:50:44 -05:00

Fixed glcass references

This commit is contained in:
Dev 2024-09-26 14:13:30 +01:00
parent 98b5ed4442
commit a79e5f17ec
4 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ namespace SPT.Custom.Patches
{ {
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {
return typeof(GClass2304).GetProperty(nameof(GClass2304.Int32_0)).GetGetMethod(); return typeof(GClass2333).GetProperty(nameof(GClass2333.Int32_0)).GetGetMethod();
} }
[PatchPrefix] [PatchPrefix]

View File

@ -61,7 +61,7 @@ namespace SPT.Debugging.Patches
} }
[PatchPrefix] [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; var firstBotRole = data.Profiles[0].Info.Settings.Role;
if (firstBotRole is not (WildSpawnType.pmcBEAR or WildSpawnType.pmcUSEC)) if (firstBotRole is not (WildSpawnType.pmcBEAR or WildSpawnType.pmcUSEC))

View File

@ -12,7 +12,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
{ {
protected override MethodBase GetTargetMethod() 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] [PatchPrefix]

View File

@ -8,7 +8,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
{ {
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {
return AccessTools.Method(typeof(GClass1926), nameof(GClass1926.GetBoolForProfile)); return AccessTools.Method(typeof(GClass1955), nameof(GClass1955.GetBoolForProfile));
} }
[PatchPrefix] [PatchPrefix]