fix(ui): Websocket

Removed debug messages, reformatted method
This commit is contained in:
LQ63
2025-11-27 08:21:23 +01:00
parent 182131f4dc
commit 998308d140
5 changed files with 3 additions and 10 deletions

View File

@@ -59,9 +59,6 @@ class GameLobby private(
if (event.oldState == MainMenu && event.newState == Lobby) {
return
}
if (event.oldState == Lobby && event.newState == InGame) {
println("RECEIVED GAMESTATEEVENT")
}
users.values.foreach(session => session.updatePlayer(event))
case event: SimpleEvent =>
users.values.foreach(session => session.updatePlayer(event))
@@ -74,7 +71,6 @@ class GameLobby private(
* @param user the user who wants to start the game.
*/
def startGame(user: User): Unit = {
println("STARTED GAME IN LOGIC")
val sessionOpt = users.get(user.id)
if (sessionOpt.isEmpty) {
throw new NotInThisGameException("You are not in this game!")