mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user