forked from External/mage
GUI: fix that cheat button shows for all players instead current user only (related to #5289);
This commit is contained in:
parent
7cfe39ae21
commit
1045f352bc
3 changed files with 9 additions and 3 deletions
|
|
@ -86,11 +86,11 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
|||
deadBackgroundColor = currentTheme.getPlayerPanel_deadBackgroundColor();
|
||||
}
|
||||
|
||||
public void init(UUID gameId, UUID playerId, BigCard bigCard, int priorityTime) {
|
||||
public void init(UUID gameId, UUID playerId, boolean controlled, BigCard bigCard, int priorityTime) {
|
||||
this.gameId = gameId;
|
||||
this.playerId = playerId;
|
||||
this.bigCard = bigCard;
|
||||
cheat.setVisible(SessionHandler.isTestMode());
|
||||
cheat.setVisible(SessionHandler.isTestMode() && controlled);
|
||||
cheat.setFocusable(false);
|
||||
flagName = null;
|
||||
if (priorityTime > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue