mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Ignore incomplete mods instead throwing LuaError
This commit is contained in:
parent
8ed55b3aff
commit
350c391b05
1 changed files with 2 additions and 1 deletions
|
@ -451,7 +451,8 @@ int ModApiMainMenu::l_check_mod_configuration(lua_State *L)
|
|||
spec.path = modpath;
|
||||
spec.virtual_path = virtual_path;
|
||||
if (!parseModContents(spec)) {
|
||||
throw LuaError("Not a mod!");
|
||||
warningstream << "Mod \"" << spec.name
|
||||
<< "\" has no \"init.lua\" or \"modpack.conf\"" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue