mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Refactor: Make copy constructor of ManaCostsImpl private. Added missing field to it
This commit is contained in:
parent
d09ec3d67c
commit
7ebe0844a2
1 changed files with 2 additions and 1 deletions
|
@ -42,13 +42,14 @@ public class ManaCostsImpl<T extends ManaCost> extends ArrayList<T> implements M
|
|||
load(mana);
|
||||
}
|
||||
|
||||
public ManaCostsImpl(final ManaCostsImpl<T> costs) {
|
||||
private ManaCostsImpl(final ManaCostsImpl<T> costs) {
|
||||
this.id = costs.id;
|
||||
this.text = costs.text;
|
||||
for (T cost : costs) {
|
||||
this.add(cost.copy());
|
||||
}
|
||||
this.phyrexian = costs.phyrexian;
|
||||
this.phyrexianPaid = costs.phyrexianPaid;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue