Merge branch 'editions-type-review' into 'master'

ReNEWED Edition Types and Dates for Card Edition, ReNewed `Set` filter dialog panel in Desktop, NEW `Blocks` Card|Deck Catalog Filter, Updates to Formats

See merge request core-developers/forge!4878
This commit is contained in:
Michael Kamensky
2021-07-06 04:23:24 +00:00
384 changed files with 1958 additions and 994 deletions

View File

@@ -231,15 +231,10 @@ public class QuestWorld implements Comparable<QuestWorld>{
*/
@Override
public int compareTo(QuestWorld other) {
if (null == other) {
if (null == other)
return 1;
}
if (name == other.name) {
return 0;
}
if (null == name) {
return -1;
}
if (this.name == null)
return -1; // dummy, no format!
return name.compareTo(other.name);
}

View File

@@ -64,7 +64,7 @@ public final class GameFormatQuest extends GameFormat {
public GameFormatQuest(final GameFormat toCopy, boolean allowSetUnlocks) {
super(toCopy.getName(), toCopy.getEffectiveDate(), toCopy.getAllowedSetCodes(), toCopy.getBannedCardNames(), toCopy.getRestrictedCards(),
toCopy.isRestrictedLegendary(),toCopy.getAdditionalCards(), toCopy.getAllowedRarities(),
toCopy.getIndex(), FormatType.Custom, FormatSubType.Custom);
toCopy.getIndex(), FormatType.CUSTOM, FormatSubType.CUSTOM);
allowUnlocks = allowSetUnlocks;
}