From 7319f7a62cf8542c8682d9cbc7feba83256f0793 Mon Sep 17 00:00:00 2001 From: Felix Koppe Date: Sun, 1 Dec 2024 23:12:36 +0100 Subject: [PATCH] Process startMenuNotification in lobby --- .../src/main/java/pp/mdga/client/NotificationSynchronizer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Projekte/mdga/client/src/main/java/pp/mdga/client/NotificationSynchronizer.java b/Projekte/mdga/client/src/main/java/pp/mdga/client/NotificationSynchronizer.java index c552e66d..00871dfe 100644 --- a/Projekte/mdga/client/src/main/java/pp/mdga/client/NotificationSynchronizer.java +++ b/Projekte/mdga/client/src/main/java/pp/mdga/client/NotificationSynchronizer.java @@ -60,6 +60,8 @@ private void handleLobby(Notification notification) { if (notification instanceof TskSelectNotification n) { lobbyView.setTaken(n.getColor(), true, n.isSelf(), n.getName()); lobbyView.setTaken(n.getColor(), true, false, n.getName()); + } else if (notification instanceof StartDialogNotification) { + app.enter(MdgaState.MAIN); } else if (notification instanceof TskUnselectNotification n) { lobbyView.setTaken(n.getColor(), false, false, null); } else if(notification instanceof LobbyReadyNotification lobbyReadyNotification) {