summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNounours Heureux <schtroumps31@gmail.com>2015-06-07 15:02:38 +0200
committerNounours Heureux <schtroumps31@gmail.com>2015-06-07 15:03:47 +0200
commit1a7e8f3e4fe59ec39dfbde4ce81ab7a4b34bc0bf (patch)
tree2964b9347eecc5d313fdbf987c51c63acb496595 /src
parentMerge pull request #2153 from mc-server/gcc5 (diff)
downloadcuberite-1a7e8f3e4fe59ec39dfbde4ce81ab7a4b34bc0bf.tar
cuberite-1a7e8f3e4fe59ec39dfbde4ce81ab7a4b34bc0bf.tar.gz
cuberite-1a7e8f3e4fe59ec39dfbde4ce81ab7a4b34bc0bf.tar.bz2
cuberite-1a7e8f3e4fe59ec39dfbde4ce81ab7a4b34bc0bf.tar.lz
cuberite-1a7e8f3e4fe59ec39dfbde4ce81ab7a4b34bc0bf.tar.xz
cuberite-1a7e8f3e4fe59ec39dfbde4ce81ab7a4b34bc0bf.tar.zst
cuberite-1a7e8f3e4fe59ec39dfbde4ce81ab7a4b34bc0bf.zip
Diffstat (limited to 'src')
-rw-r--r--src/CraftingRecipes.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/CraftingRecipes.cpp b/src/CraftingRecipes.cpp
index a95ac5f84..f37d52779 100644
--- a/src/CraftingRecipes.cpp
+++ b/src/CraftingRecipes.cpp
@@ -168,7 +168,14 @@ void cCraftingGrid::ConsumeGrid(const cCraftingGrid & a_Grid)
m_Items[ThisIdx].m_ItemCount -= NumWantedItems;
if (m_Items[ThisIdx].m_ItemCount == 0)
{
- m_Items[ThisIdx].Clear();
+ if (m_Items[ThisIdx].m_ItemType == E_ITEM_MILK || m_Items[ThisIdx].m_ItemType == E_ITEM_WATER_BUCKET || m_Items[ThisIdx].m_ItemType == E_ITEM_LAVA_BUCKET)
+ {
+ m_Items[ThisIdx] = cItem(E_ITEM_BUCKET, m_Items[ThisIdx].m_ItemCount);
+ }
+ else
+ {
+ m_Items[ThisIdx].Clear();
+ }
}
} // for x, for y
}