From 3a6f8a945a730558b7e4f7269828700a84f7ac3e Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Tue, 19 Nov 2024 23:59:16 +0100 Subject: [PATCH] palyer ready fix --- .../src/main/java/pp/monopoly/game/server/ServerGameLogic.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java index 0685b39..62cdd72 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java @@ -174,8 +174,7 @@ public class ServerGameLogic implements ClientInterpreter { Player player = playerHandler.getPlayerById(from); if (player != null) { player.setName(msg.getName()); - player.setColor(msg.getColor()); - player.setName(msg.getName()); + playerHandler.setPlayerReady(player, true); LOGGER.log(Level.DEBUG, "Player {0} is ready", player.getName()); } }