summaryrefslogtreecommitdiffstats
path: root/source/ManualBindings.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-22 16:49:38 +0100
committermadmaxoft <github@xoft.cz>2013-11-22 16:49:38 +0100
commit14569885e55c7f3def2b0f56765c742a162c0fe1 (patch)
tree6eb9f2570ec02229d4db5bb8c7dc74143ccc6afb /source/ManualBindings.cpp
parentAPIDump: Documented new cRoot:GetFurnaceRecipe(). (diff)
downloadcuberite-14569885e55c7f3def2b0f56765c742a162c0fe1.tar
cuberite-14569885e55c7f3def2b0f56765c742a162c0fe1.tar.gz
cuberite-14569885e55c7f3def2b0f56765c742a162c0fe1.tar.bz2
cuberite-14569885e55c7f3def2b0f56765c742a162c0fe1.tar.lz
cuberite-14569885e55c7f3def2b0f56765c742a162c0fe1.tar.xz
cuberite-14569885e55c7f3def2b0f56765c742a162c0fe1.tar.zst
cuberite-14569885e55c7f3def2b0f56765c742a162c0fe1.zip
Diffstat (limited to 'source/ManualBindings.cpp')
-rw-r--r--source/ManualBindings.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp
index 418819910..f3325f25c 100644
--- a/source/ManualBindings.cpp
+++ b/source/ManualBindings.cpp
@@ -2067,15 +2067,16 @@ static int tolua_cRoot_GetFurnaceRecipe(lua_State * tolua_S)
{
cLuaState L(tolua_S);
if (
- !L.CheckParamUserType(1, "const cItem") ||
- !L.CheckParamEnd (2)
+ !L.CheckParamUserTable(1, "cRoot") ||
+ !L.CheckParamUserType (2, "const cItem") ||
+ !L.CheckParamEnd (3)
)
{
return 0;
}
// Check the input param:
- cItem * Input = (cItem *)tolua_tousertype(L, 1, NULL);
+ cItem * Input = (cItem *)tolua_tousertype(L, 2, NULL);
if (Input == NULL)
{
LOGWARNING("cRoot:GetFurnaceRecipe: the Input parameter is nil or missing.");