1
0

Ignore whitespace only lines in brewing and furnace recipes (#4332)

This commit is contained in:
peterbell10
2019-06-11 13:39:44 +01:00
committed by GitHub
parent 52e6543ba5
commit 9dc1343bda
4 changed files with 19 additions and 9 deletions

View File

@@ -45,8 +45,9 @@ void cBrewingRecipes::ReloadRecipes(void)
ParsingLine.erase(FirstCommentSymbol);
}
if (ParsingLine.empty())
if (IsOnlyWhitespace(ParsingLine))
{
// Ignore empty and whitespace only lines
continue;
}
AddRecipeFromLine(ParsingLine, LineNum);