mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Fixed ui bug: enchanted or equipped permanent changing location on battlefield on every update.
This commit is contained in:
parent
8f45bc1717
commit
32547a3f4e
2 changed files with 7 additions and 7 deletions
|
|
@ -104,15 +104,15 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane implements Compon
|
|||
|
||||
if (changed) {
|
||||
Plugins.getInstance().sortPermanents(ui, permanents.values());
|
||||
}
|
||||
|
||||
for (PermanentView permanent: battlefield.values()) {
|
||||
if (permanent.getAttachments() != null) {
|
||||
groupAttachments(permanent);
|
||||
|
||||
for (PermanentView permanent: battlefield.values()) {
|
||||
if (permanent.getAttachments() != null) {
|
||||
groupAttachments(permanent);
|
||||
}
|
||||
}
|
||||
|
||||
invalidate();
|
||||
}
|
||||
|
||||
invalidate();
|
||||
}
|
||||
|
||||
private void addPermanent(PermanentView permanent) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue