mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Fixed #4305 - too big card numbers in viewer for some sets
This commit is contained in:
parent
e81f6c5e90
commit
f9ef1388da
1 changed files with 6 additions and 0 deletions
|
@ -465,6 +465,12 @@ public class MageBook extends JComponent {
|
|||
LinkedList<Integer> haveNumbers = new LinkedList<>();
|
||||
for (ExpansionSet.SetCardInfo card: cards){
|
||||
int cardNumber = card.getCardNumberAsInt();
|
||||
|
||||
// skip xmage special numbers for cards (TODO: replace full art cards numbers from 180+20 to 180b, 180c and vice versa like scryfall)
|
||||
if(cardNumber > 500){
|
||||
continue;
|
||||
}
|
||||
|
||||
startNumber = min(startNumber, cardNumber);
|
||||
endNumber = Math.max(endNumber, cardNumber);
|
||||
haveNumbers.add(cardNumber);
|
||||
|
|
Loading…
Reference in a new issue