mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
[UI] Fixed Issue#470: equipped wasn't positioned correctly if equipped creature was returned to owner's hand
This commit is contained in:
parent
bd56decfd3
commit
95843f6fa3
1 changed files with 8 additions and 0 deletions
|
@ -150,6 +150,14 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!changed) {
|
||||||
|
UUID u1 = oldMagePermanent.getOriginalPermanent().getAttachedTo();
|
||||||
|
UUID u2 = permanent.getAttachedTo();
|
||||||
|
if (u1 == null && u2 != null || u2 == null && u1 != null
|
||||||
|
|| (u1 != null && !u1.equals(u2)) ) {
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
oldMagePermanent.update(permanent);
|
oldMagePermanent.update(permanent);
|
||||||
|
|
Loading…
Reference in a new issue