mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
added split card halves back to database (fixes #8541)
This commit is contained in:
parent
dc17e3fb90
commit
783ddb5bdc
1 changed files with 5 additions and 0 deletions
|
@ -69,6 +69,11 @@ public final class CardScanner {
|
||||||
// downloads unknown cards from the server as texts (images, hints and all other works fine with it)
|
// downloads unknown cards from the server as texts (images, hints and all other works fine with it)
|
||||||
|
|
||||||
cardsToAdd.add(new CardInfo(card));
|
cardsToAdd.add(new CardInfo(card));
|
||||||
|
if (card instanceof SplitCard) {
|
||||||
|
SplitCard splitCard = (SplitCard) card;
|
||||||
|
cardsToAdd.add(new CardInfo(splitCard.getLeftHalfCard()));
|
||||||
|
cardsToAdd.add(new CardInfo(splitCard.getRightHalfCard()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue