Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions EXILED/Exiled.Events/Patches/Generic/LockerList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
new(OpCodes.Isinst, typeof(MapGeneration.Distributors.Locker)),
new(OpCodes.Dup),
new(OpCodes.Brfalse_S, jump),
new(OpCodes.Newobj, GetDeclaredConstructors(typeof(API.Features.Lockers.Locker))[0]),
new(OpCodes.Call, Method(typeof(API.Features.Lockers.Locker), nameof(API.Features.Lockers.Locker.Get), new[] { typeof(MapGeneration.Distributors.Locker) })),
new CodeInstruction(OpCodes.Pop).WithLabels(jump),
});

Expand All @@ -50,4 +50,4 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
ListPool<CodeInstruction>.Pool.Return(newInstructions);
}
}
}
}
Loading