copy all sections from imported deck in constructed deck edtior

This commit is contained in:
Nikolay Hidalgo Diaz
2017-12-30 08:11:20 +03:00
parent 45bebdff0c
commit 9f5cc344ad

View File

@@ -294,9 +294,10 @@ public class Deck extends DeckBase implements Iterable<Entry<DeckSection, CardPo
@Override
public void importDeck(Deck deck) {
DeckSection[] sections = new DeckSection[] {DeckSection.Main, DeckSection.Sideboard};
for (DeckSection section: sections) {
this.putSection(section, deck.getOrCreate(section));
deck.loadDeferredSections();
for (DeckSection section: deck.parts.keySet()) {
this.putSection(section, deck.get(section));
}
}