Skip to content

Commit 6908cfd

Browse files
committed
labels.add
1 parent 991e24b commit 6908cfd

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

EXILED/Exiled.Events/Patches/Events/Player/ActivatingWorkstation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
7878
new(OpCodes.Call, PropertySetter(typeof(WorkstationController), nameof(WorkstationController.NetworkStatus))),
7979
});
8080

81-
newInstructions[newInstructions.Count - 1].WithLabels(returnLabel);
81+
newInstructions[newInstructions.Count - 1].labels.Add(returnLabel);
8282

8383
for (int z = 0; z < newInstructions.Count; z++)
8484
yield return newInstructions[z];

EXILED/Exiled.Events/Patches/Events/Player/ChangingDangerState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
194194
new(OpCodes.Brfalse_S, returnLabel),
195195
});
196196

197-
newInstructions[newInstructions.Count - 1].WithLabels(returnLabel);
197+
newInstructions[newInstructions.Count - 1].labels.Add(returnLabel);
198198

199199
for (int z = 0; z < newInstructions.Count; z++)
200200
yield return newInstructions[z];

EXILED/Exiled.Events/Patches/Events/Scp096/AddingTarget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
7171
new(OpCodes.Brfalse_S, returnLabel),
7272
});
7373

74-
newInstructions[newInstructions.Count - 1].WithLabels(returnLabel);
74+
newInstructions[newInstructions.Count - 1].labels.Add(returnLabel);
7575

7676
for (int z = 0; z < newInstructions.Count; z++)
7777
yield return newInstructions[z];

EXILED/Exiled.Events/Patches/Events/Scp096/CalmingDown.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
7676
new(OpCodes.Starg_S, 1),
7777
});
7878

79-
newInstructions[newInstructions.Count - 1].WithLabels(returnLabel);
79+
newInstructions[newInstructions.Count - 1].labels.Add(returnLabel);
8080

8181
for (int z = 0; z < newInstructions.Count; z++)
8282
yield return newInstructions[z];

EXILED/Exiled.Events/Patches/Events/Scp173/BlinkingRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
6868
new(OpCodes.Brfalse, returnLabel),
6969
});
7070

71-
newInstructions[newInstructions.Count - 1].WithLabels(returnLabel);
71+
newInstructions[newInstructions.Count - 1].labels.Add(returnLabel);
7272

7373
for (int z = 0; z < newInstructions.Count; z++)
7474
yield return newInstructions[z];

EXILED/Exiled.Events/Patches/Events/Server/AddingUnitName.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
5858
new(OpCodes.Brfalse_S, returnLabel),
5959
});
6060

61-
newInstructions[newInstructions.Count - 1].WithLabels(returnLabel);
61+
newInstructions[newInstructions.Count - 1].labels.Add(returnLabel);
6262

6363
for (int z = 0; z < newInstructions.Count; z++)
6464
yield return newInstructions[z];

EXILED/Exiled.Events/Patches/Generic/ParseVisionInformation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
4444
// otherwise the second check won't be executed
4545
Label secondCheckPointer = generator.DefineLabel();
4646

47-
newInstructions[0].WithLabels(continueLabel);
47+
newInstructions[0].labels.Add(continueLabel);
4848

4949
// if (referenceHub.roleManager.CurrentRole.RoleTypeId == RoleTypeId.Tutorial && !ExiledEvents.Instance.Config.CanTutorialTriggerScp096
5050
// || Scp096Role.TurnedPlayers.Contains(Player.Get(referenceHub)))

0 commit comments

Comments
 (0)