Make BoosterCollator not share state between tables on a server (#8312)

This commit is contained in:
Alex W. Jackson 2021-09-23 08:06:08 -04:00 committed by GitHub
parent bcb42b8f46
commit 384051d9eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 712 additions and 1406 deletions

View file

@ -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();
}
}
}