mirror of
https://github.com/minetest/minetest.git
synced 2025-07-03 16:30:24 +02:00
Hide mapgens from main menu not intended for end users
This commit is contained in:
@ -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++) {
|
||||
|
Reference in New Issue
Block a user