From 763594e579250a707ccd91f10fb79f712e626d61 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Fri, 8 Dec 2017 00:53:03 +0400 Subject: [PATCH] type --- .../java/mage/cards/decks/importer/TxtDeckImporter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mage/src/main/java/mage/cards/decks/importer/TxtDeckImporter.java b/Mage/src/main/java/mage/cards/decks/importer/TxtDeckImporter.java index 374cc3c94d..f6be7960ca 100644 --- a/Mage/src/main/java/mage/cards/decks/importer/TxtDeckImporter.java +++ b/Mage/src/main/java/mage/cards/decks/importer/TxtDeckImporter.java @@ -64,11 +64,13 @@ public class TxtDeckImporter extends DeckImporter { } else if (commentString.startsWith("//main")) { sideboard = false; - // if there are commands then disable empty line switcher (see deckstats.net format) - if (nonEmptyLinesTotal > 0){ + // if there are commands mode (see deckstats.net format) then disable empty line switcher + if (nonEmptyLinesTotal == 0){ switchSideboardByEmptyLine = false; } } + + // skip comment line return; }