aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-10-04 16:37:03 -0400
committerkwolekr <kwolekr@minetest.net>2015-10-04 17:11:41 -0400
commit9f25aba6c2c3a922ebe74c327e275e83fef1f6f6 (patch)
treefea1c24179d6199fafbe83d1120ddea5da2c40c3 /src/script/lua_api
parent0850d3bb930ac5e2cfd71a58fd49725e4c2a4c96 (diff)
downloadminetest-9f25aba6c2c3a922ebe74c327e275e83fef1f6f6.tar.gz
minetest-9f25aba6c2c3a922ebe74c327e275e83fef1f6f6.tar.bz2
minetest-9f25aba6c2c3a922ebe74c327e275e83fef1f6f6.zip
Hide mapgens from main menu not intended for end users
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_mainmenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp
index d28925d5c..8478cf48a 100644
--- a/src/script/lua_api/l_mainmenu.cpp
+++ b/src/script/lua_api/l_mainmenu.cpp
@@ -707,7 +707,7 @@ int ModApiMainMenu::l_set_topleft_text(lua_State *L)
int ModApiMainMenu::l_get_mapgen_names(lua_State *L)
{
std::vector<const char *> names;
- EmergeManager::getMapgenNames(&names);
+ EmergeManager::getMapgenNames(&names, lua_toboolean(L, 1));
lua_newtable(L);
for (size_t i = 0; i != names.size(); i++) {