aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2014-11-30 04:42:02 +0000
committerkwolekr <kwolekr@minetest.net>2014-12-03 19:45:29 -0500
commit0a5373d4002d462208d810dd8c3b5f5f8b3cf429 (patch)
treea8e258dd8e4d48683cb38846b263c9caa2b7722b /src/script
parentfcb1ea903faf8933142a04b7c8ab89ec08a0be24 (diff)
downloadminetest-0a5373d4002d462208d810dd8c3b5f5f8b3cf429.tar.gz
minetest-0a5373d4002d462208d810dd8c3b5f5f8b3cf429.tar.bz2
minetest-0a5373d4002d462208d810dd8c3b5f5f8b3cf429.zip
Add definable node_stone to biome API, mgv5, mgv7. Reduce and correct depth of mgv7 biomes. l_mapgen.cpp: add '#include mapgen_v5.h' because '#include mapgen_v7' is there. Improve underwater grass hack
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_mapgen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp
index 89bf8dadb..bb76bb450 100644
--- a/src/script/lua_api/l_mapgen.cpp
+++ b/src/script/lua_api/l_mapgen.cpp
@@ -30,6 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "mg_ore.h"
#include "mg_decoration.h"
#include "mg_schematic.h"
+#include "mapgen_v5.h"
#include "mapgen_v7.h"
#include "settings.h"
#include "main.h"
@@ -336,6 +337,8 @@ int ModApiMapgen::l_register_biome(lua_State *L)
"mapgen_dirt_with_grass", CONTENT_AIR, &b->c_top);
resolver->addNode(getstringfield_default(L, index, "node_filler", ""),
"mapgen_dirt", CONTENT_AIR, &b->c_filler);
+ resolver->addNode(getstringfield_default(L, index, "node_stone", ""),
+ "mapgen_stone", CONTENT_AIR, &b->c_stone);
resolver->addNode(getstringfield_default(L, index, "node_water", ""),
"mapgen_water_source", CONTENT_AIR, &b->c_water);
resolver->addNode(getstringfield_default(L, index, "node_dust", ""),