Skip to content

Commit

Permalink
fixed some typo
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxWorn3365 committed Aug 1, 2024
1 parent 91fc11e commit 2a6b04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXILED/Exiled.Events/Patches/Events/Scp079/Recontaining.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi

newInstructions.InsertRange(index, new CodeInstruction[]
{
// RecontainingEventArgs ev = new(ReferenceHub "attacker")
// RecontainingEventArgs ev = new(this._activatorGlass)
new(OpCodes.Ldarg_0),
new(OpCodes.Ldfld, PropertyGetter(typeof(Scp079Recontainer), nameof(Scp079Recontainer._activatorGlass))),
new(OpCodes.Newobj, GetDeclaredConstructors(typeof(RecontainingEventArgs))[0]),
new(OpCodes.Starg_S, ev.LocalIndex),

// Call event
// Scp079.OnRecontaining(ev)
new(OpCodes.Ldarg_S, ev.LocalIndex),
new(OpCodes.Call, Method(typeof(Scp079), nameof(Scp079.OnRecontaining))),

Expand Down

0 comments on commit 2a6b04c

Please sign in to comment.