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);
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());
}
}