1
0
Fork 0
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:
ZavGaro 2024-08-20 21:25:33 +03:00
parent 8ed55b3aff
commit 350c391b05

View file

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