From cc7f277bef9beefc6a02e301e58a56cc29561a2f Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Mon, 25 Nov 2024 15:05:02 +0100 Subject: [PATCH] fixed b button --- .../main/java/pp/monopoly/client/MonopolyApp.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java index 186425a..c58fa97 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java @@ -279,19 +279,7 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga private void handleB(boolean isPressed) { if (isPressed) { Dialog tmp = new BuyCard(this); - if (eventCard != null && isBuyCardPopupOpen) { - // Schließe das SettingsMenu - System.out.println("Schließe BuyCardPopup..."); - eventCard.close(); - eventCard = null; - tmp.open(); - } else { - // Öffne das SettingsMenu - System.out.println("Öffne BuyCardPopup..."); - eventCard = new EventCard(this); - eventCard.open(); - dialogManager.close(tmp); - } + tmp.open(); } }