aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-27 22:20:04 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-27 22:20:04 -0500
commit08d259cf41db805ada7c39a39ffe9dcec4f0c230 (patch)
tree15e4b3a9cc2a3c2792186b4c61e10c0a9c299cbd /src/script
parentb67f37f27ea7d89b2098fa9fcc2533fa1091e695 (diff)
downloadminetest-08d259cf41db805ada7c39a39ffe9dcec4f0c230.tar.gz
minetest-08d259cf41db805ada7c39a39ffe9dcec4f0c230.tar.bz2
minetest-08d259cf41db805ada7c39a39ffe9dcec4f0c230.zip
Set fallback content if resolving content vector requires everything
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_mapgen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp
index a90c2c6c5..383fbeaef 100644
--- a/src/script/lua_api/l_mapgen.cpp
+++ b/src/script/lua_api/l_mapgen.cpp
@@ -508,7 +508,7 @@ int ModApiMapgen::l_register_decoration(lua_State *L)
//// Get node name(s) to place decoration on
std::vector<const char *> place_on_names;
getstringlistfield(L, index, "place_on", place_on_names);
- nri->nodename_sizes.push_back(place_on_names.size());
+ nri->nodelistinfo.push_back(NodeListInfo(place_on_names.size()));
for (size_t i = 0; i != place_on_names.size(); i++)
nri->nodenames.push_back(place_on_names[i]);
@@ -585,7 +585,7 @@ bool ModApiMapgen::regDecoSimple(lua_State *L,
"defined" << std::endl;
return false;
}
- nri->nodename_sizes.push_back(deco_names.size());
+ nri->nodelistinfo.push_back(NodeListInfo(deco_names.size()));
for (size_t i = 0; i != deco_names.size(); i++)
nri->nodenames.push_back(deco_names[i]);
@@ -596,7 +596,7 @@ bool ModApiMapgen::regDecoSimple(lua_State *L,
" but num_spawn_by specified" << std::endl;
return false;
}
- nri->nodename_sizes.push_back(spawnby_names.size());
+ nri->nodelistinfo.push_back(NodeListInfo(spawnby_names.size()));
for (size_t i = 0; i != spawnby_names.size(); i++)
nri->nodenames.push_back(spawnby_names[i]);
@@ -691,7 +691,7 @@ int ModApiMapgen::l_register_ore(lua_State *L)
std::vector<const char *> wherein_names;
getstringlistfield(L, index, "wherein", wherein_names);
- nri->nodename_sizes.push_back(wherein_names.size());
+ nri->nodelistinfo.push_back(NodeListInfo(wherein_names.size()));
for (size_t i = 0; i != wherein_names.size(); i++)
nri->nodenames.push_back(wherein_names[i]);