From eb54fb1d14c27829ec2ccd43d115b35541464f86 Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Tue, 10 Dec 2024 14:12:28 +0100 Subject: [PATCH] build correct --- .../main/java/pp/monopoly/game/client/ClientGameLogic.java | 5 +++++ 1 file changed, 5 insertions(+) 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 e5f641a..a05890b 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 @@ -327,6 +327,11 @@ public class ClientGameLogic implements ServerInterpreter, GameEventBroker { board.add(new Hotel(property.getId())); } else { + + for(int i = 0; i < 4; i++) { + board.remove(board.getHouse(msg.getId(), i+1)); + } + board.add(new House( property.getHouses(), property.getId())); } } else {