mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
copy all sections from imported deck in constructed deck edtior
This commit is contained in:
@@ -294,9 +294,10 @@ public class Deck extends DeckBase implements Iterable<Entry<DeckSection, CardPo
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void importDeck(Deck deck) {
|
public void importDeck(Deck deck) {
|
||||||
DeckSection[] sections = new DeckSection[] {DeckSection.Main, DeckSection.Sideboard};
|
deck.loadDeferredSections();
|
||||||
for (DeckSection section: sections) {
|
|
||||||
this.putSection(section, deck.getOrCreate(section));
|
for (DeckSection section: deck.parts.keySet()) {
|
||||||
|
this.putSection(section, deck.get(section));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user