diff --git a/Fika.Core/Coop/ObservedClasses/HandsControllers/CoopObservedMedsController.cs b/Fika.Core/Coop/ObservedClasses/HandsControllers/CoopObservedMedsController.cs index 1e11ec6b..b1bf0260 100644 --- a/Fika.Core/Coop/ObservedClasses/HandsControllers/CoopObservedMedsController.cs +++ b/Fika.Core/Coop/ObservedClasses/HandsControllers/CoopObservedMedsController.cs @@ -64,7 +64,7 @@ private async Task DropController() private Player.BaseAnimationOperation GetObservedMedsOperation() { return new ObservedMedsOperation(this); - } + } public override bool CanChangeCompassState(bool newState) { @@ -100,7 +100,6 @@ public void ObservedStart(Action callback) State = Player.EOperationState.Executing; SetLeftStanceAnimOnStartOperation(); callback(); - observedMedsController.coopPlayer.HealthController.EffectRemovedEvent += method_2; observedMedsController.FirearmsAnimator.SetActiveParam(true, false); } diff --git a/Fika.Core/Coop/Patches/MedkidHidePatch.cs b/Fika.Core/Coop/Patches/MedkidHidePatch.cs deleted file mode 100644 index 9736522e..00000000 --- a/Fika.Core/Coop/Patches/MedkidHidePatch.cs +++ /dev/null @@ -1,25 +0,0 @@ -using EFT; -using Fika.Core.Coop.Utils; -using SPT.Reflection.Patching; -using System; -using System.Reflection; - -namespace Fika.Core.Coop.Patches -{ - internal class MedkidHidePatch : ModulePatch - { - protected override MethodBase GetTargetMethod() - { - return typeof(Player.MedsController).GetMethod(nameof(Player.MedsController.Class1158.HideWeapon)); - } - - [PatchPrefix] - public static void Prefix() - { - if (FikaBackendUtils.IsClient) - { - Logger.LogWarning("Player.MedsController.Class1158.HideWeapon ran but it shouldn't!\n" + Environment.StackTrace); - } - } - } -} diff --git a/Fika.Core/FikaPlugin.cs b/Fika.Core/FikaPlugin.cs index 68466478..e425191f 100644 --- a/Fika.Core/FikaPlugin.cs +++ b/Fika.Core/FikaPlugin.cs @@ -343,7 +343,6 @@ private static void EnableFikaPatches() new BotReload_method_1_Patch().Enable(); new Class1374_ReloadBackendLocale_Patch().Enable(); new GClass2013_method_0_Patch().Enable(); - new MedkidHidePatch().Enable(); #if DEBUG TasksExtensions_HandleFinishedTask_Patches.Enable(); new GClass1640_method_0_Patch().Enable();