mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Fix cube draft crash on saving
This commit is contained in:
@@ -362,7 +362,7 @@ public class BoosterDraft implements IBoosterDraft {
|
|||||||
public Deck[] getDecks() {
|
public Deck[] getDecks() {
|
||||||
Deck[] decks = new Deck[7];
|
Deck[] decks = new Deck[7];
|
||||||
for (int i = 1; i < N_PLAYERS; i++) {
|
for (int i = 1; i < N_PLAYERS; i++) {
|
||||||
decks[i - 1] = ((LimitedPlayerAI) this.players.get(i)).buildDeck(IBoosterDraft.LAND_SET_CODE[0].getCode());
|
decks[i - 1] = ((LimitedPlayerAI) this.players.get(i)).buildDeck(IBoosterDraft.LAND_SET_CODE[0] != null ? IBoosterDraft.LAND_SET_CODE[0].getCode() : null);
|
||||||
}
|
}
|
||||||
return decks;
|
return decks;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user