forked from External/mage
Fixed Issue 41. Made title displayed on the center.
This commit is contained in:
parent
7efd24464c
commit
14b8069afc
2 changed files with 11 additions and 1 deletions
|
|
@ -70,6 +70,7 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane implements Compon
|
|||
|
||||
protected static DefaultActionCallback defaultCallback = DefaultActionCallback.getInstance();
|
||||
protected static Map<UUID, PermanentView> battlefield;
|
||||
protected static Map<UUID, Integer> attachmentCache = new HashMap<UUID, Integer>();
|
||||
|
||||
/** Creates new form BattlefieldPanel */
|
||||
public BattlefieldPanel(JScrollPane jScrollPane) {
|
||||
|
|
@ -99,6 +100,14 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane implements Compon
|
|||
changed = true;
|
||||
}
|
||||
else {
|
||||
MagePermanent p = permanents.get(permanent.getId());
|
||||
if (!changed) {
|
||||
int s1 = permanent.getAttachments() == null ? 0 : permanent.getAttachments().size();
|
||||
int s2 = p.getLinks().size();
|
||||
if (s1 != s2) {
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
permanents.get(permanent.getId()).update(permanent);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue