From bb2490eb1359d0572084d7d2dc08e668fff797e7 Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Fri, 27 Mar 2026 21:58:06 -0300 Subject: [PATCH] Fix wrong arguments in RemovePatch --- .../SharedSource/LuaCs/_Services/EventService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/EventService.cs b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/EventService.cs index 34102b8cc..8803ca2c8 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/EventService.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/EventService.cs @@ -366,12 +366,12 @@ public partial class EventService : IEventService public bool RemovePatch(string identifier, string className, string methodName, string[] parameterTypes, LuaCsHook.HookMethodType hookType) { - return _luaPatcher.RemovePatch(className, methodName, methodName, parameterTypes, hookType); + return _luaPatcher.RemovePatch(className, className, methodName, parameterTypes, hookType); } public bool RemovePatch(string identifier, string className, string methodName, LuaCsHook.HookMethodType hookType) { - return _luaPatcher.RemovePatch(className, methodName, methodName, hookType); + return _luaPatcher.RemovePatch(className, className, methodName, hookType); } public void HookMethod(string identifier, MethodBase method, LuaCsPatch patch, LuaCsHook.HookMethodType hookType = LuaCsHook.HookMethodType.Before, IAssemblyPlugin owner = null)