Fix wrong arguments in RemovePatch

This commit is contained in:
Evil Factory
2026-03-27 21:58:06 -03:00
parent 57daa3ccb7
commit bb2490eb13

View File

@@ -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)