fix: fixed the No-Events-bug in the lobby
This commit is contained in:
parent
1e37bf8ff3
commit
e288c8d4a4
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user