fix: fixed the No-Events-bug in the lobby

This commit is contained in:
Yannik Bretschneider 2021-06-07 15:12:22 +02:00
parent 1e37bf8ff3
commit e288c8d4a4

View File

@ -215,7 +215,7 @@ public class Lobby {
private synchronized void turnTimeout(Participant source) { private synchronized void turnTimeout(Participant source) {
var nextTurnEvents = game.endTurn(); var nextTurnEvents = game.endTurn();
nextTurnEvents.add(game.getGameStateEvent()); nextTurnEvents.add(game.getGameStateEvent());
connection.broadcastEvents(); connection.broadcastEvents(nextTurnEvents.toArray(new Event[0]));
updateTimer(); updateTimer();
} }