I am getting the following in the console when I reload the plugin:
c.reload UltimateLocker
UltimateLocker v0.9.89 by Scalbox hook 'Unload' took longer than 100ms [597ms]
Unloaded plugin UltimateLocker v0.9.89 by Scalbox
Warning! 'UltimateLocker' uses Harmony. That may cause instability, use at your own discretion!
A hook request for 'OnQuarryToggled[42dee4]' received:
- The current status is FAILURE: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:EngineSwitch.StartEngine_Patch0 (EngineSwitch,BaseEntity/RPCMessage): IL_0012: brfalse IL_0032
- Check for possible errors on the log file
A hook request for 'OnQuarryToggled[784f96]' received:
- The current status is FAILURE: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:EngineSwitch.StopEngine_Patch0 (EngineSwitch,BaseEntity/RPCMessage): IL_0012: brfalse IL_0032
- Check for possible errors on the log file
Loaded plugin UltimateLocker v0.9.89 by Scalbox [832ms]
UltimateLocker v0.9.89 by Scalbox hook 'OnServerInitialized' took longer than 100ms [170ms]
A hook request for 'OnQuarryToggled[784f96]' received:
- The current status is FAILURE: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:EngineSwitch.StopEngine_Patch0 (EngineSwitch,BaseEntity/RPCMessage): IL_0012: brfalse IL_0032
- Check for possible errors on the log file
Error while patching hook 'OnQuarryToggled[784f96]' (Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:EngineSwitch.StopEngine_Patch0 (EngineSwitch,BaseEntity/RPCMessage): IL_0012: brfalse IL_0032
)
at MethodInfo HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo)
at MethodInfo HarmonyLib.PatchProcessor.Patch()
at MethodInfo HarmonyLib.Harmony.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler, HarmonyMethod finalizer)
at bool Carbon.Hooks.HookEx.ApplyPatch() in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon/src/Hooks/HookEx.cs:line 224
A general error occured while installing 'OnQuarryToggled[784f96]'
A hook request for 'OnQuarryToggled[42dee4]' received:
- The current status is FAILURE: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:EngineSwitch.StartEngine_Patch0 (EngineSwitch,BaseEntity/RPCMessage): IL_0012: brfalse IL_0032
- Check for possible errors on the log file
Error while patching hook 'OnQuarryToggled[42dee4]' (Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:EngineSwitch.StartEngine_Patch0 (EngineSwitch,BaseEntity/RPCMessage): IL_0012: brfalse IL_0032
)
at MethodInfo HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo)
at MethodInfo HarmonyLib.PatchProcessor.Patch()
at MethodInfo HarmonyLib.Harmony.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler, HarmonyMethod finalizer)
at bool Carbon.Hooks.HookEx.ApplyPatch() in /home/runner/work/Carbon/Carbon/Carbon.Core/Carbon/src/Hooks/HookEx.cs:line 224
A general error occured while installing 'OnQuarryToggled[42dee4]'