aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_mapgen.cpp
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2018-01-04 23:10:55 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-05 00:10:55 +0100
commit549cfd9db80c858bdc8d23a237ea57ccf5f68400 (patch)
treef027da5fdacc905d5f5941aa645e68e5994adb51 /src/script/lua_api/l_mapgen.cpp
parentff2ceed381f0f9c7da5e147cdb9abf0118804ed6 (diff)
downloadminetest-549cfd9db80c858bdc8d23a237ea57ccf5f68400.tar.gz
minetest-549cfd9db80c858bdc8d23a237ea57ccf5f68400.tar.bz2
minetest-549cfd9db80c858bdc8d23a237ea57ccf5f68400.zip
Biomes: Add vertical biome blend (#6853)
Add 'vertical blend' parameter to biome registration that defines how many nodes above the biome's 'y max' limit the blend will extend.
Diffstat (limited to 'src/script/lua_api/l_mapgen.cpp')
-rw-r--r--src/script/lua_api/l_mapgen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp
index e39370323..b526111d4 100644
--- a/src/script/lua_api/l_mapgen.cpp
+++ b/src/script/lua_api/l_mapgen.cpp
@@ -392,6 +392,7 @@ Biome *read_biome_def(lua_State *L, int index, INodeDefManager *ndef)
b->y_max = getintfield_default(L, index, "y_max", 31000);
b->heat_point = getfloatfield_default(L, index, "heat_point", 0.f);
b->humidity_point = getfloatfield_default(L, index, "humidity_point", 0.f);
+ b->vertical_blend = getintfield_default(L, index, "vertical_blend", 0);
b->flags = 0; //reserved
std::vector<std::string> &nn = b->m_nodenames;