summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-19 11:16:18 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-19 11:16:18 +0100
commit387135cdc32bd35e5e7c9cf7b6ed4db6f7182a4a (patch)
tree1e88eb2e9d52d1974a08b137316279258ebc398e /source
parentLakes: added a limiter, better height distribution (diff)
downloadcuberite-387135cdc32bd35e5e7c9cf7b6ed4db6f7182a4a.tar
cuberite-387135cdc32bd35e5e7c9cf7b6ed4db6f7182a4a.tar.gz
cuberite-387135cdc32bd35e5e7c9cf7b6ed4db6f7182a4a.tar.bz2
cuberite-387135cdc32bd35e5e7c9cf7b6ed4db6f7182a4a.tar.lz
cuberite-387135cdc32bd35e5e7c9cf7b6ed4db6f7182a4a.tar.xz
cuberite-387135cdc32bd35e5e7c9cf7b6ed4db6f7182a4a.tar.zst
cuberite-387135cdc32bd35e5e7c9cf7b6ed4db6f7182a4a.zip
Diffstat (limited to '')
-rw-r--r--source/Bindings.cpp9
-rw-r--r--source/Bindings.h2
2 files changed, 7 insertions, 4 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp
index 2f7ce10ce..a7207ffb9 100644
--- a/source/Bindings.cpp
+++ b/source/Bindings.cpp
@@ -1,6 +1,6 @@
/*
** Lua binding: AllToLua
-** Generated automatically by tolua++-1.0.92 on 03/17/13 18:47:08.
+** Generated automatically by tolua++-1.0.92 on 03/19/13 11:16:25.
*/
#ifndef __cplusplus
@@ -20450,7 +20450,8 @@ static int tolua_AllToLua_cChunkDesc_WriteBlockArea00(lua_State* tolua_S)
!tolua_isnumber(tolua_S,3,0,&tolua_err) ||
!tolua_isnumber(tolua_S,4,0,&tolua_err) ||
!tolua_isnumber(tolua_S,5,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,6,&tolua_err)
+ !tolua_isnumber(tolua_S,6,1,&tolua_err) ||
+ !tolua_isnoobj(tolua_S,7,&tolua_err)
)
goto tolua_lerror;
else
@@ -20461,11 +20462,12 @@ static int tolua_AllToLua_cChunkDesc_WriteBlockArea00(lua_State* tolua_S)
int a_RelX = ((int) tolua_tonumber(tolua_S,3,0));
int a_RelY = ((int) tolua_tonumber(tolua_S,4,0));
int a_RelZ = ((int) tolua_tonumber(tolua_S,5,0));
+ cBlockArea::eMergeStrategy a_MergeStrategy = ((cBlockArea::eMergeStrategy) (int) tolua_tonumber(tolua_S,6,cBlockArea::msOverwrite));
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'WriteBlockArea'", NULL);
#endif
{
- self->WriteBlockArea(*a_BlockArea,a_RelX,a_RelY,a_RelZ);
+ self->WriteBlockArea(*a_BlockArea,a_RelX,a_RelY,a_RelZ,a_MergeStrategy);
}
}
return 0;
@@ -22579,6 +22581,7 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S)
tolua_constant(tolua_S,"msOverwrite",cBlockArea::msOverwrite);
tolua_constant(tolua_S,"msFillAir",cBlockArea::msFillAir);
tolua_constant(tolua_S,"msImprint",cBlockArea::msImprint);
+ tolua_constant(tolua_S,"msLake",cBlockArea::msLake);
tolua_function(tolua_S,"new",tolua_AllToLua_cBlockArea_new00);
tolua_function(tolua_S,"new_local",tolua_AllToLua_cBlockArea_new00_local);
tolua_function(tolua_S,".call",tolua_AllToLua_cBlockArea_new00_local);
diff --git a/source/Bindings.h b/source/Bindings.h
index d3e0643c2..643d3aae9 100644
--- a/source/Bindings.h
+++ b/source/Bindings.h
@@ -1,6 +1,6 @@
/*
** Lua binding: AllToLua
-** Generated automatically by tolua++-1.0.92 on 03/17/13 18:47:09.
+** Generated automatically by tolua++-1.0.92 on 03/19/13 11:16:25.
*/
/* Exported function */