From 17eb44ce49a4b2c64672217038c2c08e62993253 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Mon, 7 Jun 2021 17:47:57 +0200 Subject: [PATCH] fix: fixed doc --- .../teamname/marvelous/server/netconnector/UserManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;