palyer ready fix

This commit is contained in:
Johannes Schmelz 2024-11-19 23:59:16 +01:00
parent bb9727d54a
commit 3a6f8a945a

View File

@ -174,8 +174,7 @@ public class ServerGameLogic implements ClientInterpreter {
Player player = playerHandler.getPlayerById(from); Player player = playerHandler.getPlayerById(from);
if (player != null) { if (player != null) {
player.setName(msg.getName()); player.setName(msg.getName());
player.setColor(msg.getColor()); playerHandler.setPlayerReady(player, true);
player.setName(msg.getName());
LOGGER.log(Level.DEBUG, "Player {0} is ready", player.getName()); LOGGER.log(Level.DEBUG, "Player {0} is ready", player.getName());
} }
} }