Skip to content

Commit 0dd9214

Browse files
committed
.
1 parent bd4b95a commit 0dd9214

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

EXILED/Exiled.Events/EventArgs/Server/RoundStartingEventArgs.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ public class RoundStartingEventArgs : IDeniableEvent
2525
/// </summary>
2626
/// <param name="timeLeft"><inheritdoc cref="TimeLeft"/></param>
2727
/// <param name="playerCount"><inheritdoc cref="PlayerCount"/></param>
28-
/// <param name="minimumPlayerCount"><inheritdoc cref="MinimumPlayerCount"/></param>
28+
/// <param name="topPlayer"><inheritdoc cref="TopPlayer"/></param>
2929
/// <param name="originalTimeLeft"><inheritdoc cref="OriginalTimeLeft"/></param>
30-
public RoundStartingEventArgs(short timeLeft, short originalTimeLeft, int minimumPlayerCount, int playerCount)
30+
public RoundStartingEventArgs(short timeLeft, short originalTimeLeft, int topPlayer, int playerCount)
3131
{
3232
TimeLeft = timeLeft;
3333
OriginalTimeLeft = originalTimeLeft;
34-
MinimumPlayerCount = minimumPlayerCount;
34+
TopPlayer = topPlayer;
3535
PlayerCount = playerCount;
3636
IsAllowed = TimeLeft == -1;
3737
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
100100
new(OpCodes.Ldarg_0),
101101
new(OpCodes.Ldloc_S, ev.LocalIndex),
102102
new(OpCodes.Callvirt, PropertyGetter(typeof(RoundStartingEventArgs), nameof(RoundStartingEventArgs.TopPlayer))),
103-
new(OpCodes.Stfld, Field(PrivateType, MinimumPlayerCount)),
103+
new(OpCodes.Stfld, Field(PrivateType, TopPlayer)),
104104

105105
// if (!ev.IsAllowed)
106106
// skip;

0 commit comments

Comments
 (0)