From 2c536f32cfe3d04e583c221ee17643aa6d9a30d9 Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Sat, 30 Nov 2024 15:14:58 +0100 Subject: [PATCH] fixed close on FoodField --- .../main/java/pp/monopoly/client/gui/popups/FoodFieldCard.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/FoodFieldCard.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/FoodFieldCard.java index 14138cd..33b3aa1 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/FoodFieldCard.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/FoodFieldCard.java @@ -85,6 +85,7 @@ public class FoodFieldCard extends Dialog { buyButton.addClickCommands(s -> ifTopDialog( () -> { app.getGameLogic().playSound(Sound.BUTTON); app.getGameLogic().send(new BuyPropertyResponse()); + close(); })); // Zentriere das Popup