From 0124fed0bf80587ff1ec450a08ea78ad26ae5ded Mon Sep 17 00:00:00 2001 From: cubic <79692655+cubicgraphics@users.noreply.github.com> Date: Tue, 27 Feb 2024 00:32:30 +0000 Subject: [PATCH] Update LobbyManager.cs Changed order of processes when not entitled players list are sent to players with beatmaps --- BeatTogether.DedicatedServer.Kernel/Managers/LobbyManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeatTogether.DedicatedServer.Kernel/Managers/LobbyManager.cs b/BeatTogether.DedicatedServer.Kernel/Managers/LobbyManager.cs index e3184677..8ee8e93d 100644 --- a/BeatTogether.DedicatedServer.Kernel/Managers/LobbyManager.cs +++ b/BeatTogether.DedicatedServer.Kernel/Managers/LobbyManager.cs @@ -189,6 +189,7 @@ public void Update() { if (player.UpdateEntitlement || SpectatingPlayersUpdated) { + player.UpdateEntitlement = false; if (player.BeatmapIdentifier != null) { _packetDispatcher.SendToPlayer(player, new SetPlayersMissingEntitlementsToLevelPacket @@ -199,7 +200,6 @@ public void Update() }, DeliveryMethod.ReliableOrdered); _logger.Debug("Sent missing entitlement packet"); } - player.UpdateEntitlement = false; } } SpectatingPlayersUpdated = false;