From 9f90a9481d8973a4ab9454fbd3abc01d49105cff Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 25 Aug 2024 09:24:10 +0100 Subject: [PATCH] Renamed patch to `FixScavWarNullErrorWithMarkOfUnknownPatch` --- ...own.cs => FixScavWarNullErrorWithMarkOfUnknownPatch.cs} | 7 +------ project/SPT.Custom/SPTCustomPlugin.cs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) rename project/SPT.Custom/Patches/{FixBotgroupMarkofTheUnknown.cs => FixScavWarNullErrorWithMarkOfUnknownPatch.cs} (79%) diff --git a/project/SPT.Custom/Patches/FixBotgroupMarkofTheUnknown.cs b/project/SPT.Custom/Patches/FixScavWarNullErrorWithMarkOfUnknownPatch.cs similarity index 79% rename from project/SPT.Custom/Patches/FixBotgroupMarkofTheUnknown.cs rename to project/SPT.Custom/Patches/FixScavWarNullErrorWithMarkOfUnknownPatch.cs index 89a8e7a..14f3630 100644 --- a/project/SPT.Custom/Patches/FixBotgroupMarkofTheUnknown.cs +++ b/project/SPT.Custom/Patches/FixScavWarNullErrorWithMarkOfUnknownPatch.cs @@ -1,18 +1,13 @@ using HarmonyLib; using SPT.Reflection.Patching; -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Text; -using System.Threading.Tasks; namespace SPT.Custom.Patches { /// /// If Scav war is turned on Botsgroup can be null for some reason if null return early to not softlock player. /// - public class FixBotgroupMarkofTheUnknown : ModulePatch + public class FixScavWarNullErrorWithMarkOfUnknownPatch : ModulePatch { protected override MethodBase GetTargetMethod() { diff --git a/project/SPT.Custom/SPTCustomPlugin.cs b/project/SPT.Custom/SPTCustomPlugin.cs index 2b1ba6d..632ec17 100644 --- a/project/SPT.Custom/SPTCustomPlugin.cs +++ b/project/SPT.Custom/SPTCustomPlugin.cs @@ -40,7 +40,7 @@ namespace SPT.Custom new BotDifficultyPatch().Enable(); //new BossSpawnChancePatch().Enable(); // Tested factory, Tagilla does not spawn 100% of the time with patch disabled new VersionLabelPatch().Enable(); - new FixBotgroupMarkofTheUnknown().Enable(); + new FixScavWarNullErrorWithMarkOfUnknownPatch().Enable(); new MergeScavPmcQuestsOnInventoryLoadPatch().Enable(); new CopyPmcQuestsToPlayerScavPatch().Enable();