forked from External/mage
Make BoosterCollator not share state between tables on a server (#8312)
This commit is contained in:
parent
bcb42b8f46
commit
384051d9eb
14 changed files with 712 additions and 1406 deletions
|
|
@ -12,11 +12,11 @@ import java.util.List;
|
|||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public abstract class BoosterStructure {
|
||||
public class BoosterStructure {
|
||||
|
||||
private final List<CardRun> slots;
|
||||
|
||||
protected BoosterStructure(CardRun... runs) {
|
||||
public BoosterStructure(CardRun... runs) {
|
||||
this.slots = Arrays.asList(runs);
|
||||
}
|
||||
|
||||
|
|
@ -27,10 +27,4 @@ public abstract class BoosterStructure {
|
|||
}
|
||||
return cards;
|
||||
}
|
||||
|
||||
public void shuffle() {
|
||||
for (CardRun run : this.slots) {
|
||||
run.shuffle();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue