fix: fixed doc

This commit is contained in:
Yannik Bretschneider 2021-06-07 17:47:57 +02:00
parent 054662957a
commit 17eb44ce49
1 changed files with 1 additions and 2 deletions

View File

@ -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;