summaryrefslogtreecommitdiffstats
path: root/src/CraftingRecipes.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-16 20:59:57 +0200
committerMattes D <github@xoft.cz>2015-04-16 20:59:57 +0200
commitffe7dae4fc4ee9d622696f221dcfa4def107646d (patch)
tree8fe28f4a22972d151db339126739395960d1f670 /src/CraftingRecipes.cpp
parentMerge pull request #1858 from mc-server/BucketPluginCalls (diff)
downloadcuberite-ffe7dae4fc4ee9d622696f221dcfa4def107646d.tar
cuberite-ffe7dae4fc4ee9d622696f221dcfa4def107646d.tar.gz
cuberite-ffe7dae4fc4ee9d622696f221dcfa4def107646d.tar.bz2
cuberite-ffe7dae4fc4ee9d622696f221dcfa4def107646d.tar.lz
cuberite-ffe7dae4fc4ee9d622696f221dcfa4def107646d.tar.xz
cuberite-ffe7dae4fc4ee9d622696f221dcfa4def107646d.tar.zst
cuberite-ffe7dae4fc4ee9d622696f221dcfa4def107646d.zip
Diffstat (limited to '')
-rw-r--r--src/CraftingRecipes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CraftingRecipes.cpp b/src/CraftingRecipes.cpp
index 202fb900e..cf8982afb 100644
--- a/src/CraftingRecipes.cpp
+++ b/src/CraftingRecipes.cpp
@@ -366,6 +366,7 @@ void cCraftingRecipes::ClearRecipes(void)
void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & a_RecipeLine)
{
+ // Remove any spaces within the line:
AString RecipeLine(a_RecipeLine);
RecipeLine.erase(std::remove_if(RecipeLine.begin(), RecipeLine.end(), isspace), RecipeLine.end());