summaryrefslogtreecommitdiffstats
path: root/src/CraftingRecipes.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-08-13 13:14:55 +0200
committerTycho <work.tycho+git@gmail.com>2014-08-13 13:14:55 +0200
commitc3c3d3a72d7517863f015364e62ca0dff46a6807 (patch)
tree6cde75c125bf0f372f56e4671eacc310a01aeaa4 /src/CraftingRecipes.cpp
parentFixed forgotten error checking (diff)
downloadcuberite-c3c3d3a72d7517863f015364e62ca0dff46a6807.tar
cuberite-c3c3d3a72d7517863f015364e62ca0dff46a6807.tar.gz
cuberite-c3c3d3a72d7517863f015364e62ca0dff46a6807.tar.bz2
cuberite-c3c3d3a72d7517863f015364e62ca0dff46a6807.tar.lz
cuberite-c3c3d3a72d7517863f015364e62ca0dff46a6807.tar.xz
cuberite-c3c3d3a72d7517863f015364e62ca0dff46a6807.tar.zst
cuberite-c3c3d3a72d7517863f015364e62ca0dff46a6807.zip
Diffstat (limited to 'src/CraftingRecipes.cpp')
-rw-r--r--src/CraftingRecipes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CraftingRecipes.cpp b/src/CraftingRecipes.cpp
index 085b6e0d5..48178eecb 100644
--- a/src/CraftingRecipes.cpp
+++ b/src/CraftingRecipes.cpp
@@ -83,7 +83,7 @@ cItem & cCraftingGrid::GetItem(int x, int y) const
-void cCraftingGrid::SetItem(int x, int y, ENUM_ITEM_ID a_ItemType, int a_ItemCount, short a_ItemHealth)
+void cCraftingGrid::SetItem(int x, int y, ENUM_ITEM_ID a_ItemType, char a_ItemCount, short a_ItemHealth)
{
// Accessible through scripting, must verify parameters:
if ((x < 0) || (x >= m_Width) || (y < 0) || (y >= m_Height))
@@ -228,7 +228,7 @@ void cCraftingRecipe::Clear(void)
-void cCraftingRecipe::SetResult(ENUM_ITEM_ID a_ItemType, int a_ItemCount, short a_ItemHealth)
+void cCraftingRecipe::SetResult(ENUM_ITEM_ID a_ItemType, char a_ItemCount, short a_ItemHealth)
{
m_Result = cItem(a_ItemType, a_ItemCount, a_ItemHealth);
}