Skip to content

Commit

Permalink
Merge pull request #633 from forkiesassds/patch-3
Browse files Browse the repository at this point in the history
[Countdown] Set speedtype to default one if speedtype is null
  • Loading branch information
UnknownShadow200 committed Sep 9, 2021
2 parents 102f863 + 7df29c0 commit 4911fdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MCGalaxy/Games/Countdown/CountdownGame.Round.cs
Expand Up @@ -63,6 +63,10 @@ public sealed partial class CountdownGame : RoundsGame {
}

void BeginRound() {
if (SpeedType == null || SpeedType == "" || Interval == 0) {
Interval = 650;
SpeedType = "normal";
}
string modeSuffix = FreezeMode ? " in freeze mode" : "";
Map.Message("Starting " + SpeedType + " speed Countdown" + modeSuffix);

Expand Down

0 comments on commit 4911fdd

Please sign in to comment.