Merge pull request 'master' (#9) from External/mage:master into master
All checks were successful
/ example-docker-compose (push) Successful in 15m13s

Reviewed-on: #9
This commit is contained in:
Failure 2024-12-18 22:41:16 -08:00
commit 6b4fc4eb47
166 changed files with 1505 additions and 579 deletions

View file

@ -87,7 +87,7 @@ public class AddLandDialog extends MageDialog {
landSetNames.add(expansionInfo.getName());
}
if (landSetNames.isEmpty()) {
throw new IllegalArgumentException("No set with basic land was found");
throw new IllegalArgumentException("No set with basic land was found (possible memory problems, need client restart)");
}
if (landSetNames.size() > 1) {
landSetNames.add("<Random lands>");
@ -477,6 +477,7 @@ public class AddLandDialog extends MageDialog {
}//GEN-LAST:event_btnSetFastSearchActionPerformed
private void autoAddLands() {
// suggest lands amount for deck without lands
int deckSize = ((Number) spnDeckSize.getValue()).intValue();
int[] lands = DeckBuildUtils.landCountSuggestion(deckSize, deck.getMaindeckCards());
spnPlains.setValue(lands[0]);