summaryrefslogtreecommitdiffstats
path: root/src/FurnaceRecipe.cpp
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2020-04-19 18:36:31 +0200
committerGitHub <noreply@github.com>2020-04-19 18:36:31 +0200
commitcb64e9937775abacfaf05e273b0e082092b4b827 (patch)
treec686061824f4e26dc62187b649ecfea6917c8792 /src/FurnaceRecipe.cpp
parentReduce arrows going black on hit (diff)
downloadcuberite-cb64e9937775abacfaf05e273b0e082092b4b827.tar
cuberite-cb64e9937775abacfaf05e273b0e082092b4b827.tar.gz
cuberite-cb64e9937775abacfaf05e273b0e082092b4b827.tar.bz2
cuberite-cb64e9937775abacfaf05e273b0e082092b4b827.tar.lz
cuberite-cb64e9937775abacfaf05e273b0e082092b4b827.tar.xz
cuberite-cb64e9937775abacfaf05e273b0e082092b4b827.tar.zst
cuberite-cb64e9937775abacfaf05e273b0e082092b4b827.zip
Diffstat (limited to 'src/FurnaceRecipe.cpp')
-rw-r--r--src/FurnaceRecipe.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/FurnaceRecipe.cpp b/src/FurnaceRecipe.cpp
index 3b3141418..3085d4e46 100644
--- a/src/FurnaceRecipe.cpp
+++ b/src/FurnaceRecipe.cpp
@@ -290,7 +290,7 @@ const cFurnaceRecipe::cRecipe * cFurnaceRecipe::GetRecipeFrom(const cItem & a_In
{
continue;
}
- else
+ else if ((Recipe.In->m_ItemDamage == -1) || (Recipe.In->m_ItemDamage == a_Ingredient.m_ItemDamage))
{
BestRecipe = &Recipe;
}
@@ -342,4 +342,3 @@ int cFurnaceRecipe::GetBurnTime(const cItem & a_Fuel) const
-