mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
fix crashes in deck import when 'use latest edition' is unchecked.
This commit is contained in:
@@ -257,7 +257,7 @@ public final class CardDb implements ICardDatabase {
|
|||||||
for(int i = 0 ; i < sz ; i++) {
|
for(int i = 0 ; i < sz ; i++) {
|
||||||
PaperCard pc = cards.get(i);
|
PaperCard pc = cards.get(i);
|
||||||
CardEdition ed = editions.get(pc.getEdition());
|
CardEdition ed = editions.get(pc.getEdition());
|
||||||
if(!fromSet.accept(ed))
|
if(fromSet != null && !fromSet.accept(ed))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if((artIndex < 0 || pc.getArtIndex() == artIndex) && (printedBefore == null || ed.getDate().before(printedBefore))) {
|
if((artIndex < 0 || pc.getArtIndex() == artIndex) && (printedBefore == null || ed.getDate().before(printedBefore))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user