mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Hide mapgens from main menu not intended for end users
This commit is contained in:
parent
0850d3bb93
commit
9f25aba6c2
4 changed files with 16 additions and 11 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue