Skip to content

Commit 044049b

Browse files
committed
Revert addition of reattempted bool in kick all
1 parent 556aae1 commit 044049b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Mods/Overpowered.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6407,7 +6407,6 @@ public static IEnumerator KickAll()
64076407
NotificationManager.SendNotification($"<color=grey>[</color><color=purple>KICK</color><color=grey>]</color> Kicking {name}.");
64086408
RPCProtection();
64096409
float time;
6410-
bool reattempted = false;
64116410
kick:
64126411
{
64136412
time = Time.time + 10f;
@@ -6432,7 +6431,6 @@ public static IEnumerator KickAll()
64326431
{
64336432
NotificationManager.SendNotification($"<color=grey>[</color><color=red>KICK</color><color=grey>]</color> Could not kick {name}, trying again..");
64346433
yield return null;
6435-
reattempted = true;
64366434
goto kick;
64376435
}
64386436
yield return null;
@@ -6443,7 +6441,7 @@ public static IEnumerator KickAll()
64436441
NotificationManager.SendNotification($"<color=grey>[</color><color=red>ERROR</color><color=grey>]</color> Kicking {name} failed. :(");
64446442
}
64456443

6446-
int left = reattempted && ((Time.time - (time - 10f)) < 1f) ? 10 : 5;
6444+
int left = (Time.time - (time - 10f)) < 1f ? 10 : 5;
64476445

64486446
NotificationManager.SendNotification($"<color=grey>[</color><color=green>SUCCESS</color><color=grey>]</color> {name} has been kicked! Waiting {left} seconds to kick the next person..");
64496447
yield return new WaitForSeconds(left);

0 commit comments

Comments
 (0)