diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-09 14:44:02 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-09 14:44:02 +0200 |
commit | 2c241bb9a465bc69764c93785a770e37a513cc2d (patch) | |
tree | e4bb47195339829410d822fc186176d5496ba9ae /source/Bindings.cpp | |
parent | Cacti grow by themselves and by bonemeal (diff) | |
download | cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar.gz cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar.bz2 cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar.lz cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar.xz cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar.zst cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.zip |
Diffstat (limited to 'source/Bindings.cpp')
-rw-r--r-- | source/Bindings.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp index 8f8da6936..1b6494237 100644 --- a/source/Bindings.cpp +++ b/source/Bindings.cpp @@ -1,6 +1,6 @@ /*
** Lua binding: AllToLua
-** Generated automatically by tolua++-1.0.92 on 06/09/12 14:03:09.
+** Generated automatically by tolua++-1.0.92 on 06/09/12 14:43:12.
*/
#ifndef __cplusplus
@@ -10262,7 +10262,8 @@ static int tolua_AllToLua_cWorld_GrowPlant00(lua_State* tolua_S) !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
!tolua_isnumber(tolua_S,3,0,&tolua_err) ||
!tolua_isnumber(tolua_S,4,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,5,&tolua_err)
+ !tolua_isboolean(tolua_S,5,1,&tolua_err) ||
+ !tolua_isnoobj(tolua_S,6,&tolua_err)
)
goto tolua_lerror;
else
@@ -10272,11 +10273,12 @@ static int tolua_AllToLua_cWorld_GrowPlant00(lua_State* tolua_S) int a_BlockX = ((int) tolua_tonumber(tolua_S,2,0));
int a_BlockY = ((int) tolua_tonumber(tolua_S,3,0));
int a_BlockZ = ((int) tolua_tonumber(tolua_S,4,0));
+ bool a_IsByBonemeal = ((bool) tolua_toboolean(tolua_S,5,false));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GrowPlant'", NULL);
#endif
{
- bool tolua_ret = (bool) self->GrowPlant(a_BlockX,a_BlockY,a_BlockZ);
+ bool tolua_ret = (bool) self->GrowPlant(a_BlockX,a_BlockY,a_BlockZ,a_IsByBonemeal);
tolua_pushboolean(tolua_S,(bool)tolua_ret);
}
}
|