From 9e595b92ba40aaf01f461fad24bd949ef3e5a404 Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Wed, 27 Nov 2024 23:19:25 +0100 Subject: [PATCH] crash when rolling dice and waitForTurn removed --- .../model/src/main/java/pp/monopoly/game/server/Player.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/Player.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/Player.java index a860235..9aae056 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/Player.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/Player.java @@ -519,7 +519,7 @@ public class Player implements FieldVisitor{ @Override public DiceResult rollDice() { - throw new UnsupportedOperationException("not allowed"); + return null; } @Override