From 085c863c95e9588933f76d5500a883f9f40534e3 Mon Sep 17 00:00:00 2001 From: ThereDrD0 <88589686+ThereDrD0@users.noreply.github.com> Date: Fri, 5 Jul 2024 20:43:49 +0300 Subject: [PATCH] fix: fix discord round ended message (#422) --- Content.Server/GameTicking/GameTicker.RoundFlow.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/GameTicking/GameTicker.RoundFlow.cs b/Content.Server/GameTicking/GameTicker.RoundFlow.cs index c3a09b8796..d5875cd0c7 100644 --- a/Content.Server/GameTicking/GameTicker.RoundFlow.cs +++ b/Content.Server/GameTicking/GameTicker.RoundFlow.cs @@ -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();