1
0
Fork 0
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:
Xeno333 2025-06-15 00:53:01 -05:00
parent 6583488fed
commit 0275ab9f73

View file

@ -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();