diff --git a/src/AdminRestrictions/HarmonyPatches/ConsoleSystem_Arg_HasPermission_Patch.cs b/src/AdminRestrictions/HarmonyPatches/ConsoleSystem_Arg_HasPermission_Patch.cs index 2828f80..cf2119c 100644 --- a/src/AdminRestrictions/HarmonyPatches/ConsoleSystem_Arg_HasPermission_Patch.cs +++ b/src/AdminRestrictions/HarmonyPatches/ConsoleSystem_Arg_HasPermission_Patch.cs @@ -62,7 +62,7 @@ public static class ConsoleSystem_Arg_HasPermission_Patch { new CodeInstruction(OpCodes.Ldarg_0), new CodeInstruction(OpCodes.Call, typeof(ConsoleSystem.Arg).GetProperty(nameof(ConsoleSystem.Arg.IsAdmin), BindingFlags.Instance | BindingFlags.Public).GetGetMethod()), - new CodeInstruction(OpCodes.Brfalse), + new CodeInstruction(OpCodes.Brfalse_S), new CodeInstruction(OpCodes.Ldc_I4_1) };