Fixed and improved the Deck Importer (from MTGO) in Android application.

This commit is contained in:
Vittorio Alfieri
2021-10-12 16:32:26 +02:00
parent c1f3913295
commit 371d4c9f85
2 changed files with 5 additions and 3 deletions

View File

@@ -38,9 +38,9 @@ public class DeckImporter
line = line.trim();
if (line.equals("")) {
line = scanner.nextLine();
prefix = "#SB:"; // Sideboard started from next card.
if (line.equals("")) {
line = scanner.nextLine();
prefix = "#SB:"; // Sideboard started from next card (we assumed that there are 2 blank lines from main deck and sideboard).
line = scanner.nextLine(); // Sometimes there are 2 blank lines from main deck and sideboard.
}
}
if (!line.equals("")) // don't write out blank lines