forked from External/mage
rewrote enum comparisons, iterator to removeIf, added some stream and filters
This commit is contained in:
parent
05e5ca3c78
commit
3a152ab3d6
41 changed files with 178 additions and 239 deletions
|
|
@ -67,11 +67,6 @@ public class SpecialActions extends AbilitiesImpl<SpecialAction> {
|
|||
}
|
||||
|
||||
public void removeManaActions() {
|
||||
for (Iterator<SpecialAction> iterator = this.iterator(); iterator.hasNext();) {
|
||||
SpecialAction next = iterator.next();
|
||||
if (next.isManaAction()) {
|
||||
iterator.remove();
|
||||
}
|
||||
}
|
||||
this.removeIf(SpecialAction::isManaAction);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue