Fix mainmenu settings crash caused by last commit

closes #15432
This commit is contained in:
sfan5 2024-11-13 18:39:10 +01:00
parent 794aea8e92
commit 0c3117f9b3
2 changed files with 1 additions and 2 deletions

@ -359,7 +359,7 @@ local function check_requirements(name, requires)
if special[req_key] == nil then
local required_setting = get_setting_info(req_key)
if required_setting == nil then
core.log("warning", "Unknown setting " .. req_key .. " required by " .. name)
core.log("warning", "Unknown setting " .. req_key .. " required by " .. (name or "???"))
end
local actual_value = core.settings:get_bool(req_key,
required_setting and core.is_yes(required_setting.default))

@ -82,7 +82,6 @@ end
return {
query_text = "Shadows",
requires = {
shaders = true,
opengl = true,
},
get_formspec = function(self, avail_w)