From ffb29f8b96b17348646c0faa9400bf65d997fefe Mon Sep 17 00:00:00 2001 From: CWX Date: Mon, 8 Jul 2024 14:52:56 +0100 Subject: [PATCH] VoipToggler no longer needed --- .../Patches/RaidFix/VoIPTogglerPatch.cs | 21 ------------------- .../SPT.SinglePlayer/SPTSingleplayerPlugin.cs | 1 - 2 files changed, 22 deletions(-) delete mode 100644 project/SPT.SinglePlayer/Patches/RaidFix/VoIPTogglerPatch.cs diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/VoIPTogglerPatch.cs b/project/SPT.SinglePlayer/Patches/RaidFix/VoIPTogglerPatch.cs deleted file mode 100644 index b3d8cba..0000000 --- a/project/SPT.SinglePlayer/Patches/RaidFix/VoIPTogglerPatch.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Reflection; -using SPT.Reflection.Patching; -using EFT; -using HarmonyLib; - -namespace SPT.SinglePlayer.Patches.RaidFix -{ - public class VoIPTogglerPatch : ModulePatch - { - protected override MethodBase GetTargetMethod() - { - return AccessTools.Method(typeof(ForceMuteVoIPToggler), nameof(ForceMuteVoIPToggler.Awake)); - } - - [PatchPrefix] - private static bool PatchPrefix() - { - return false; - } - } -} \ No newline at end of file diff --git a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs index 99d6f6d..4c5c8ac 100644 --- a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs +++ b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs @@ -26,7 +26,6 @@ namespace SPT.SinglePlayer new TinnitusFixPatch().Enable(); new SmokeGrenadeFuseSoundFixPatch().Enable(); new EmptyInfilFixPatch().Enable(); - new VoIPTogglerPatch().Enable(); new ScavExperienceGainPatch().Enable(); new MainMenuControllerPatch().Enable(); new HealthControllerPatch().Enable();