summaryrefslogtreecommitdiffstats
path: root/source/Bindings.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-11-26 15:37:15 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-11-26 15:37:15 +0100
commit686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5 (patch)
treef31bbc5567d815b4c000da682c71327a6f51a1ab /source/Bindings.cpp
parentMerge pull request #368 from mc-server/ExpOrbs (diff)
downloadcuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.gz
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.bz2
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.lz
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.xz
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.zst
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.zip
Diffstat (limited to '')
-rw-r--r--source/Bindings.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp
index 7bea672da..62a16b38b 100644
--- a/source/Bindings.cpp
+++ b/source/Bindings.cpp
@@ -1,6 +1,6 @@
/*
** Lua binding: AllToLua
-** Generated automatically by tolua++-1.0.92 on 11/25/13 21:47:32.
+** Generated automatically by tolua++-1.0.92 on 11/26/13 15:29:19.
*/
#ifndef __cplusplus
@@ -12616,10 +12616,11 @@ static int tolua_AllToLua_cWorld_SpawnExperienceOrb00(lua_State* tolua_S)
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SpawnExperienceOrb'", NULL);
#endif
{
- self->SpawnExperienceOrb(a_X,a_Y,a_Z,a_Reward);
+ int tolua_ret = (int) self->SpawnExperienceOrb(a_X,a_Y,a_Z,a_Reward);
+ tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
}
}
- return 0;
+ return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'SpawnExperienceOrb'.",&tolua_err);