Ignore whitespace only lines in brewing and furnace recipes (#4332)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user