diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-09 14:03:49 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-09 14:03:49 +0200 |
commit | ec61713221292914cd8e9e12bb77fac9e76e42eb (patch) | |
tree | 99acb7704519206e83e91235c78fa0f1ec22cd83 /source/Bindings.cpp | |
parent | Bonemeal is consumed in survival mode when used on growable blocks (diff) | |
download | cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar.gz cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar.bz2 cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar.lz cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar.xz cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar.zst cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.zip |
Diffstat (limited to 'source/Bindings.cpp')
-rw-r--r-- | source/Bindings.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp index 5ad4ab7a9..8f8da6936 100644 --- a/source/Bindings.cpp +++ b/source/Bindings.cpp @@ -1,6 +1,6 @@ /*
** Lua binding: AllToLua
-** Generated automatically by tolua++-1.0.92 on Fri Jun 8 03:43:28 2012.
+** Generated automatically by tolua++-1.0.92 on 06/09/12 14:03:09.
*/
#ifndef __cplusplus
@@ -13,8 +13,8 @@ /* Exported function */
TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S);
-#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
-#include "tolua_base.h"
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+#include "tolua_base.h"
#include "cTorch.h"
#include "cStairs.h"
#include "cStep.h"
@@ -10276,10 +10276,11 @@ static int tolua_AllToLua_cWorld_GrowPlant00(lua_State* tolua_S) if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GrowPlant'", NULL);
#endif
{
- self->GrowPlant(a_BlockX,a_BlockY,a_BlockZ);
+ bool tolua_ret = (bool) self->GrowPlant(a_BlockX,a_BlockY,a_BlockZ);
+ tolua_pushboolean(tolua_S,(bool)tolua_ret);
}
}
- return 0;
+ return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'GrowPlant'.",&tolua_err);
|