Skip to content
This repository has been archived by the owner on Jan 19, 2025. It is now read-only.

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
VALERA771 committed Apr 2, 2024
1 parent 8a21f2b commit 67fe593
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Exiled.Events/Patches/Events/Map/ElevatorMovingAndArrived.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
new(OpCodes.Ldc_I4_1),

// ElevatorMovingEventArgs ev = new(Lift, true);
new(OpCodes.Newobj, GetDeclaredConstructors(typeof(ElevatorMovingEventArgs))),
new(OpCodes.Dup),
new(OpCodes.Newobj, GetDeclaredConstructors(typeof(ElevatorMovingEventArgs))[0]),
new(OpCodes.Dup),

// Handlers.Map.OnElevatorMoving(ev);
Expand All @@ -74,7 +73,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
new(OpCodes.Call, Method(typeof(Lift), nameof(Lift.Get), new[] { typeof(ElevatorChamber) })),

// ElevatorArrivedEventArgs ev = new(Lift);
new(OpCodes.Newobj, GetDeclaredConstructors(typeof(ElevatorArrivedEventArgs))),
new(OpCodes.Newobj, GetDeclaredConstructors(typeof(ElevatorArrivedEventArgs))[0]),

// Handlers.Map.OnElevatorArrived(ev);
new(OpCodes.Call, Method(typeof(Handlers.Map), nameof(Handlers.Map.OnElevatorArrived))),
Expand Down

0 comments on commit 67fe593

Please sign in to comment.