This commit is contained in:
Cedric Beck
2024-12-01 23:58:57 +01:00

View File

@@ -109,8 +109,10 @@ public void received(LobbyReadyMessage msg, int from) {
}
this.logic.getGame().setAllReady(true);
if (this.logic.getGame().allReady()) {
this.logic.getServerSender().broadcast(new ServerStartGameMessage(this.logic.getGame().getBoard()));
}
}
/**
* This method will be called whenever the server received a LobbyNotReadyMessage message.