Fixed: disconnection during lobby creation--> currentStateProblem

This commit is contained in:
rubenpirreram
2026-05-14 14:04:22 +02:00
parent eb4eae4605
commit 6ff79f2e1d
3 changed files with 10 additions and 5 deletions
@@ -96,8 +96,9 @@ public class Game implements Serializable {
return false;
}
disconnetedPlayers.put(player,true);
if (currentState.equals(GameStages.WAITING)) {
if (currentState.getGameStage().equals(GameStages.WAITING)) {
playersList.remove(player);
totemChoiceQueue.remove(player);
return true;
}
if(currentState.getCurrentPlayer().equals(player)) {