summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-06-26 18:28:10 +0200
committerMattes D <github@xoft.cz>2014-06-26 18:28:10 +0200
commit0df644c9f7775862c6c359b238e3440536092e04 (patch)
tree23bc86615a5073749e3a08fa664bb31a5587cc23
parentFixed misformed trimming. (diff)
downloadcuberite-0df644c9f7775862c6c359b238e3440536092e04.tar
cuberite-0df644c9f7775862c6c359b238e3440536092e04.tar.gz
cuberite-0df644c9f7775862c6c359b238e3440536092e04.tar.bz2
cuberite-0df644c9f7775862c6c359b238e3440536092e04.tar.lz
cuberite-0df644c9f7775862c6c359b238e3440536092e04.tar.xz
cuberite-0df644c9f7775862c6c359b238e3440536092e04.tar.zst
cuberite-0df644c9f7775862c6c359b238e3440536092e04.zip
-rw-r--r--src/FurnaceRecipe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FurnaceRecipe.cpp b/src/FurnaceRecipe.cpp
index 412402cbc..8add9610c 100644
--- a/src/FurnaceRecipe.cpp
+++ b/src/FurnaceRecipe.cpp
@@ -68,7 +68,7 @@ void cFurnaceRecipe::ReloadRecipes(void)
while (std::getline(f, ParsingLine))
{
LineNum++;
- ParsingLine = TrimString(ParsingLine);
+ ParsingLine.erase(std::remove_if(ParsingLine.begin(), ParsingLine.end(), isspace), ParsingLine.end()); // Remove ALL whitespace from the line
if (ParsingLine.empty())
{
continue;