mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fix for the audio trigger of 'Player joined the table' not being fired.
This commit is contained in:
parent
a4e7c2b407
commit
4c85d89b64
1 changed files with 3 additions and 4 deletions
|
@ -54,6 +54,7 @@ import mage.client.util.GUISizeHelper;
|
|||
import mage.client.util.audio.AudioManager;
|
||||
import mage.client.util.gui.TableUtil;
|
||||
import mage.client.util.gui.countryBox.CountryCellRenderer;
|
||||
import mage.players.PlayerType;
|
||||
import mage.remote.Session;
|
||||
import mage.view.SeatView;
|
||||
import mage.view.TableView;
|
||||
|
@ -451,10 +452,8 @@ class UpdateSeatsTask extends SwingWorker<Void, TableView> {
|
|||
int playerCount = 0;
|
||||
if (tableView != null) {
|
||||
for (SeatView seatView : tableView.getSeats()) {
|
||||
if (seatView.getPlayerId() != null) {
|
||||
if (seatView.getPlayerType().toString().equals("Human")) {
|
||||
playerCount++;
|
||||
}
|
||||
if (seatView.getPlayerId() != null && seatView.getPlayerType() == PlayerType.HUMAN) {
|
||||
playerCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue