Fixed ui bug: enchanted or equipped permanent changing location on battlefield on every update.

This commit is contained in:
magenoxx 2010-11-27 08:45:59 +00:00
parent 8f45bc1717
commit 32547a3f4e
2 changed files with 7 additions and 7 deletions

View file

@ -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) {