diff options
author | kwolekr <kwolekr@minetest.net> | 2015-10-04 16:37:03 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-10-04 17:11:41 -0400 |
commit | 9f25aba6c2c3a922ebe74c327e275e83fef1f6f6 (patch) | |
tree | fea1c24179d6199fafbe83d1120ddea5da2c40c3 /src/script/lua_api | |
parent | 0850d3bb930ac5e2cfd71a58fd49725e4c2a4c96 (diff) | |
download | minetest-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.cpp | 2 |
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++) { |