mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
Minor fix for user handling.
This commit is contained in:
parent
d5284ae226
commit
8221a68efe
1 changed files with 5 additions and 3 deletions
|
@ -170,9 +170,11 @@ public class TournamentSession {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void removeTournamentForUser() {
|
private void removeTournamentForUser() {
|
||||||
UserManager.instance.getUser(userId).ifPresent(user
|
Optional<User> user = UserManager.instance.getUser(userId);
|
||||||
-> user.removeTournament(playerId));
|
if (user.isPresent()) {
|
||||||
|
user.get().removeTable(playerId);
|
||||||
|
user.get().removeTournament(playerId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue