diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/netconnector/UserManager.java b/Server/src/main/java/uulm/teamname/marvelous/server/netconnector/UserManager.java index 5bae0cb..22e4b97 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/netconnector/UserManager.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/netconnector/UserManager.java @@ -226,7 +226,6 @@ public class UserManager { Logger.trace("relaying message to be handled by the LobbyManager..."); if(LobbyManager.getInstance().handleSelection(client, message)) { Logger.trace("Handled successfully"); - client.state = ClientState.Playing; } else { client.sendError("Invalid message."); } @@ -236,7 +235,7 @@ public class UserManager { private void handleRequestsMessage(Client client, RequestMessage message) { Logger.trace("Handling RequestMessage"); if(client.state != ClientState.Playing) { - Logger.debug("Couldn't handle RequestMessage as client wasn't in assignedState but in {}", + Logger.debug("Couldn't handle RequestMessage as client wasn't in playingState but in {}", client.state); client.sendError("Invalid message, as client is not ingame"); return;