Skip to content

Commit

Permalink
fix: incorrect sequence IL
Browse files Browse the repository at this point in the history
- Rust made changes to HasPermission which caused the IL code to change
GhilleAU committed May 3, 2024
1 parent 0e0681a commit 6384902
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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)
};

0 comments on commit 6384902

Please sign in to comment.