From 0a5373d4002d462208d810dd8c3b5f5f8b3cf429 Mon Sep 17 00:00:00 2001 From: paramat Date: Sun, 30 Nov 2014 04:42:02 +0000 Subject: 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 --- src/script/lua_api/l_mapgen.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script/lua_api/l_mapgen.cpp') 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", ""), -- cgit v1.2.3