From e288c8d4a4a9a27f04e4722287f652ec3a34fd8d Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Mon, 7 Jun 2021 15:12:22 +0200 Subject: [PATCH] fix: fixed the No-Events-bug in the lobby --- .../main/java/uulm/teamname/marvelous/server/lobby/Lobby.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java index 25c37b4..d8e5917 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/Lobby.java @@ -215,7 +215,7 @@ public class Lobby { private synchronized void turnTimeout(Participant source) { var nextTurnEvents = game.endTurn(); nextTurnEvents.add(game.getGameStateEvent()); - connection.broadcastEvents(); + connection.broadcastEvents(nextTurnEvents.toArray(new Event[0])); updateTimer(); }