fix: fix discord round ended message (#422)

This commit is contained in:
ThereDrD0
2024-07-05 20:43:49 +03:00
committed by GitHub
parent 5139e1e6b4
commit 085c863c95

View File

@@ -453,8 +453,6 @@ namespace Content.Server.GameTicking
_replayRoundPlayerInfo = listOfPlayerInfoFinal;
_replayRoundText = roundEndText;
RaiseLocalEvent(new RoundEndedEvent(RoundId, roundDuration)); // WD-EDIT
}
private async void SendRoundEndDiscordMessage()
@@ -505,7 +503,9 @@ namespace Content.Server.GameTicking
_sawmill.Info("Restarting round!");
SendServerMessage(Loc.GetString("game-ticker-restart-round"));
RaiseLocalEvent(new RealRoundEndedEvent());
RaiseLocalEvent(new RealRoundEndedEvent()); // WD
RaiseLocalEvent(new RoundEndedEvent(RoundId, RoundDuration())); // WD
RoundNumberMetric.Inc();