added split card halves back to database (fixes #8541)

This commit is contained in:
Evan Kranzler 2022-03-11 09:25:35 -05:00
parent dc17e3fb90
commit 783ddb5bdc

View file

@ -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()));
}
} }
} }
} }