diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java index 8beb8ba..2190873 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java @@ -192,6 +192,7 @@ public class Toolbar extends Dialog implements GameEventListener { diceButton.setPreferredSize(new Vector3f(200, 50, 0)); diceButton.addClickCommands(s -> ifTopDialog(() -> { diceButton.setEnabled(false); + endTurnButton.setEnabled(true); startDiceAnimation(); app.getGameLogic().send(new RollDice()); app.getGameLogic().playSound(Sound.BUTTON); @@ -409,7 +410,7 @@ public class Toolbar extends Dialog implements GameEventListener { diceButton.setEnabled(enabled); tradeButton.setEnabled(enabled); propertyMenuButton.setEnabled(enabled); - endTurnButton.setEnabled(enabled); + endTurnButton.setEnabled(false); } /** diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/client/ClientGameLogic.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/client/ClientGameLogic.java index 32725de..261a251 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/client/ClientGameLogic.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/client/ClientGameLogic.java @@ -333,7 +333,6 @@ public class ClientGameLogic implements ServerInterpreter, GameEventBroker { @Override public void received(NextPlayerTurn msg) { notifyListeners(new ButtonStatusEvent(true)); - setState(new ActiveState(this)); } @Override