mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
undo change i didnt mean to push
This commit is contained in:
parent
6583488fed
commit
0275ab9f73
1 changed files with 4 additions and 1 deletions
|
@ -593,7 +593,10 @@ int ModApiMainMenu::l_create_world(lua_State *L)
|
|||
|
||||
// Create world if it doesn't exist
|
||||
try {
|
||||
loadGameConfAndInitWorld(path, name, *game_it, true, g_settings->get("lua_mapgen"));
|
||||
std::string lua_mapgen = "";
|
||||
if (use_settings.find("lua_mapgen") != use_settings.end())
|
||||
lua_mapgen = use_settings["lua_mapgen"];
|
||||
loadGameConfAndInitWorld(path, name, *game_it, true, lua_mapgen);
|
||||
lua_pushnil(L);
|
||||
} catch (const BaseException &e) {
|
||||
auto err = std::string("Failed to initialize world: ") + e.what();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue