mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Fix exception in desktop UI with lazy card loading.
This commit is contained in:
@@ -187,6 +187,11 @@ public class GauntletIO {
|
||||
final boolean foil = "1".equals(reader.getAttribute("foil"));
|
||||
PaperCard card = FModel.getMagicDb().getCommonCards().getCard(name, set, index);
|
||||
if (null == card) {
|
||||
FModel.getMagicDb().attemptToLoadCard(name, set);
|
||||
card = FModel.getMagicDb().getCommonCards().getCard(name, set, index);
|
||||
}
|
||||
if (null == card) {
|
||||
FModel.getMagicDb().attemptToLoadCard(name, set);
|
||||
card = FModel.getMagicDb().getCommonCards().getCard(name, set, -1);
|
||||
}
|
||||
if (null == card) {
|
||||
|
||||
Reference in New Issue
Block a user