wrong negation

This commit is contained in:
ingmargoudt 2017-04-07 23:55:10 +02:00
parent 5dfc0392f9
commit 8b44327312

View file

@ -527,7 +527,7 @@ public class TableController {
match.quitMatch(playerId); match.quitMatch(playerId);
} }
Optional<User> user = UserManager.instance.getUser(userId); Optional<User> user = UserManager.instance.getUser(userId);
if (!user.isPresent()) { if (user.isPresent()) {
ChatManager.instance.broadcast(chatId, user.get().getName(), "has left the table", ChatMessage.MessageColor.BLUE, true, ChatMessage.MessageType.STATUS, ChatMessage.SoundToPlay.PlayerLeft); ChatManager.instance.broadcast(chatId, user.get().getName(), "has left the table", ChatMessage.MessageColor.BLUE, true, ChatMessage.MessageType.STATUS, ChatMessage.SoundToPlay.PlayerLeft);
if (!table.isTournamentSubTable()) { if (!table.isTournamentSubTable()) {
user.get().removeTable(playerId); user.get().removeTable(playerId);