summaryrefslogtreecommitdiffstats
path: root/source/CraftingRecipes.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-18 14:09:13 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-18 14:09:13 +0100
commitfcdaaae64b5efb90989c48832f26de536453da9c (patch)
tree0b7f666c6fb17a989c481f19ac38a91a50682f56 /source/CraftingRecipes.cpp
parentUpdated crafting and items to 1.4.4 (initial patch by STR_Warrior) (diff)
downloadcuberite-fcdaaae64b5efb90989c48832f26de536453da9c.tar
cuberite-fcdaaae64b5efb90989c48832f26de536453da9c.tar.gz
cuberite-fcdaaae64b5efb90989c48832f26de536453da9c.tar.bz2
cuberite-fcdaaae64b5efb90989c48832f26de536453da9c.tar.lz
cuberite-fcdaaae64b5efb90989c48832f26de536453da9c.tar.xz
cuberite-fcdaaae64b5efb90989c48832f26de536453da9c.tar.zst
cuberite-fcdaaae64b5efb90989c48832f26de536453da9c.zip
Diffstat (limited to '')
-rw-r--r--source/CraftingRecipes.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/CraftingRecipes.cpp b/source/CraftingRecipes.cpp
index 4cf503b3a..a48e777b5 100644
--- a/source/CraftingRecipes.cpp
+++ b/source/CraftingRecipes.cpp
@@ -363,6 +363,7 @@ void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & a_RecipeLine
if (Sides.size() != 2)
{
LOGWARNING("crafting.txt: line %d: A single '=' was expected, got %d", a_LineNum, (int)Sides.size() - 1);
+ LOGINFO("Offending line: \"%s\"", a_RecipeLine.c_str());
return;
}
@@ -373,11 +374,13 @@ void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & a_RecipeLine
if (ResultSplit.empty())
{
LOGWARNING("crafting.txt: line %d: Result is empty, ignoring the recipe.", a_LineNum);
+ LOGINFO("Offending line: \"%s\"", a_RecipeLine.c_str());
return;
}
if (!ParseItem(ResultSplit[0], Recipe->m_Result))
{
LOGWARNING("crafting.txt: line %d: Cannot parse result item, ignoring the recipe.", a_LineNum);
+ LOGINFO("Offending line: \"%s\"", a_RecipeLine.c_str());
return;
}
if (ResultSplit.size() > 1)
@@ -386,6 +389,7 @@ void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & a_RecipeLine
if (Recipe->m_Result.m_ItemCount == 0)
{
LOGWARNING("crafting.txt: line %d: Cannot parse result count, ignoring the recipe.", a_LineNum);
+ LOGINFO("Offending line: \"%s\"", a_RecipeLine.c_str());
return;
}
}
@@ -402,6 +406,7 @@ void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & a_RecipeLine
if (!ParseIngredient(*itr, Recipe.get()))
{
LOGWARNING("crafting.txt: line %d: Cannot parse ingredient #%d, ignoring the recipe.", a_LineNum, Num);
+ LOGINFO("Offending line: \"%s\"", a_RecipeLine.c_str());
return;
}
} // for itr - Ingredients[]