summaryrefslogtreecommitdiffstats
path: root/src/BrewingRecipes.cpp
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2019-06-11 14:39:44 +0200
committerGitHub <noreply@github.com>2019-06-11 14:39:44 +0200
commit9dc1343bda0592f2d27bb216eb21fdec97f73945 (patch)
tree21124243b854cfbd37cdec70a20e4505deac9f3b /src/BrewingRecipes.cpp
parentRespect return value of cLuaWindow's OnClicked handler (#4322) (diff)
downloadcuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar
cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar.gz
cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar.bz2
cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar.lz
cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar.xz
cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar.zst
cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.zip
Diffstat (limited to 'src/BrewingRecipes.cpp')
-rw-r--r--src/BrewingRecipes.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/BrewingRecipes.cpp b/src/BrewingRecipes.cpp
index 3f5173d3d..ca427f9cc 100644
--- a/src/BrewingRecipes.cpp
+++ b/src/BrewingRecipes.cpp
@@ -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);