From 0c3117f9b32624955846314ebf87f757d124184f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 13 Nov 2024 18:39:10 +0100 Subject: [PATCH] Fix mainmenu settings crash caused by last commit closes #15432 --- builtin/mainmenu/settings/dlg_settings.lua | 2 +- builtin/mainmenu/settings/shadows_component.lua | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin/mainmenu/settings/dlg_settings.lua b/builtin/mainmenu/settings/dlg_settings.lua index dbd77a4db..f03596815 100644 --- a/builtin/mainmenu/settings/dlg_settings.lua +++ b/builtin/mainmenu/settings/dlg_settings.lua @@ -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)) diff --git a/builtin/mainmenu/settings/shadows_component.lua b/builtin/mainmenu/settings/shadows_component.lua index 2ca03b71b..2d68f9d3d 100644 --- a/builtin/mainmenu/settings/shadows_component.lua +++ b/builtin/mainmenu/settings/shadows_component.lua @@ -82,7 +82,6 @@ end return { query_text = "Shadows", requires = { - shaders = true, opengl = true, }, get_formspec = function(self, avail_w)