aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-02-24 04:06:05 +0000
committerparamat <mat.gregory@virginmedia.com>2015-02-26 03:35:25 +0000
commit14f7df980b5be20339ab637a96bdc08ac907abf2 (patch)
tree1b6ceec8154071c8eff4dc115eb778e2dbbe6146 /src/script
parentd65a90a86bf5f1422a64ff190abefb8f7f199460 (diff)
downloadminetest-14f7df980b5be20339ab637a96bdc08ac907abf2.tar.gz
minetest-14f7df980b5be20339ab637a96bdc08ac907abf2.tar.bz2
minetest-14f7df980b5be20339ab637a96bdc08ac907abf2.zip
Biome API: Re-calculate biome at every surface in a mapchunk column
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_mapgen.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp
index d470cef88..f14b0dfcb 100644
--- a/src/script/lua_api/l_mapgen.cpp
+++ b/src/script/lua_api/l_mapgen.cpp
@@ -444,8 +444,7 @@ int ModApiMapgen::l_register_biome(lua_State *L)
b->name = getstringfield_default(L, index, "name", "");
b->depth_top = getintfield_default(L, index, "depth_top", 1);
- b->depth_filler = getintfield_default(L, index, "depth_filler", 3);
- b->height_shore = getintfield_default(L, index, "height_shore", 3);
+ b->depth_filler = getintfield_default(L, index, "depth_filler", 2);
b->depth_water_top = getintfield_default(L, index, "depth_water_top", 0);
b->y_min = getintfield_default(L, index, "y_min", -31000);
b->y_max = getintfield_default(L, index, "y_max", 31000);
@@ -463,9 +462,6 @@ int ModApiMapgen::l_register_biome(lua_State *L)
std::list<std::string> &nnames = nri->nodenames;
nnames.push_back(getstringfield_default(L, index, "node_top", ""));
nnames.push_back(getstringfield_default(L, index, "node_filler", ""));
- nnames.push_back(getstringfield_default(L, index, "node_shore_top", ""));
- nnames.push_back(getstringfield_default(L, index, "node_shore_filler", ""));
- nnames.push_back(getstringfield_default(L, index, "node_underwater", ""));
nnames.push_back(getstringfield_default(L, index, "node_stone", ""));
nnames.push_back(getstringfield_default(L, index, "node_water_top", ""));
nnames.push_back(getstringfield_default(L, index, "node_water", ""));