mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
refactored ColorlessPredicate to singleton enum
This commit is contained in:
parent
e6b99215e1
commit
dc409c9a9e
38 changed files with 41 additions and 41 deletions
|
|
@ -253,7 +253,7 @@ public class CardSelector extends javax.swing.JPanel implements ComponentListene
|
|||
predicates.add(new ColorPredicate(ObjectColor.WHITE));
|
||||
}
|
||||
if (this.tbColorless.isSelected()) {
|
||||
predicates.add(new ColorlessPredicate());
|
||||
predicates.add(ColorlessPredicate.instance);
|
||||
}
|
||||
filter.add(Predicates.or(predicates));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue