1
0
Fork 0
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:
est31 2015-03-13 04:35:34 +01:00 committed by ShadowNinja
parent 467fc0ddc9
commit 538036d004
6 changed files with 38 additions and 20 deletions

View file

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