mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Get rid of an unnecessary CardDb of allCards which was taking 256kb of memory.
This commit is contained in:
@@ -161,7 +161,10 @@ public class GuiChoose {
|
||||
return;
|
||||
} else if (sel instanceof ICardFace) {
|
||||
final ICardFace face = (ICardFace)sel;
|
||||
final PaperCard paper = FModel.getMagicDb().getAllCards().getUniqueByName(face.getName());
|
||||
PaperCard paper = FModel.getMagicDb().getCommonCards().getUniqueByName(face.getName());
|
||||
if (paper == null) {
|
||||
paper = FModel.getMagicDb().getVariantCards().getUniqueByName(face.getName());
|
||||
}
|
||||
matchUI.setCard(paper);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user