mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix game minetest.conf default settings
This was a regression introduced by f6e4c5d9cf
.
This commit is contained in:
parent
467fc0ddc9
commit
538036d004
6 changed files with 38 additions and 20 deletions
|
@ -644,15 +644,12 @@ int ModApiMainMenu::l_create_world(lua_State *L)
|
|||
(gameidx < (int) games.size())) {
|
||||
|
||||
// Create world if it doesn't exist
|
||||
if(!initializeWorld(path, games[gameidx].id)){
|
||||
if (!loadGameConfAndInitWorld(path, games[gameidx])) {
|
||||
lua_pushstring(L, "Failed to initialize world");
|
||||
|
||||
} else {
|
||||
lua_pushnil(L);
|
||||
}
|
||||
else {
|
||||
lua_pushnil(L);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
lua_pushstring(L, "Invalid game index");
|
||||
}
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue