diff --git a/Mage.Client/src/main/java/mage/client/dialog/TableWaitingDialog.java b/Mage.Client/src/main/java/mage/client/dialog/TableWaitingDialog.java index d6492a0a39..314df928cb 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/TableWaitingDialog.java +++ b/Mage.Client/src/main/java/mage/client/dialog/TableWaitingDialog.java @@ -437,6 +437,7 @@ class UpdateSeatsTask extends SwingWorker { AudioManager.playPlayerJoinedTable(); } else { MageTray.instance.displayMessage("A player left your game."); + AudioManager.playPlayerLeft(); } MageTray.instance.blink(); } @@ -450,8 +451,10 @@ class UpdateSeatsTask extends SwingWorker { int playerCount = 0; if (tableView != null) { for (SeatView seatView : tableView.getSeats()) { - if (seatView.getPlayerId() != null && seatView.getPlayerType().equals("Human")) { - playerCount++; + if (seatView.getPlayerId() != null) { + if (seatView.getPlayerType().toString().equals("Human")) { + playerCount++; + } } } }