summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-16 21:33:42 +0200
committerMattes D <github@xoft.cz>2015-04-16 21:33:42 +0200
commit0b3fd73f90ec0960c90fb47a7d464d5eea709400 (patch)
tree2a38df20df47ff572501ac8fc998c1ce6c37a7d7 /src
parentFixed PolishedGranite et al crafting recipes. (diff)
downloadcuberite-0b3fd73f90ec0960c90fb47a7d464d5eea709400.tar
cuberite-0b3fd73f90ec0960c90fb47a7d464d5eea709400.tar.gz
cuberite-0b3fd73f90ec0960c90fb47a7d464d5eea709400.tar.bz2
cuberite-0b3fd73f90ec0960c90fb47a7d464d5eea709400.tar.lz
cuberite-0b3fd73f90ec0960c90fb47a7d464d5eea709400.tar.xz
cuberite-0b3fd73f90ec0960c90fb47a7d464d5eea709400.tar.zst
cuberite-0b3fd73f90ec0960c90fb47a7d464d5eea709400.zip
Diffstat (limited to 'src')
-rw-r--r--src/CraftingRecipes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CraftingRecipes.cpp b/src/CraftingRecipes.cpp
index cf8982afb..472044fa3 100644
--- a/src/CraftingRecipes.cpp
+++ b/src/CraftingRecipes.cpp
@@ -673,10 +673,10 @@ cCraftingRecipes::cRecipe * cCraftingRecipes::MatchRecipe(const cItem * a_Crafti
if (
(itrS->x >= a_GridWidth) ||
(itrS->y >= a_GridHeight) ||
- (Item.m_ItemType != a_CraftingGrid[GridID].m_ItemType) || // same item type?
+ (Item.m_ItemType != a_CraftingGrid[GridID].m_ItemType) || // same item type?
(Item.m_ItemCount > a_CraftingGrid[GridID].m_ItemCount) || // not enough items
(
- (Item.m_ItemDamage > 0) && // should compare damage values?
+ (Item.m_ItemDamage >= 0) && // should compare damage values?
(Item.m_ItemDamage != a_CraftingGrid[GridID].m_ItemDamage)
)
)