We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecd3824 commit 415d3c5Copy full SHA for 415d3c5
mods/default/init.lua
@@ -106,11 +106,13 @@ local function parse_flagstr(dest, s)
106
local flags = string.split(s, ",", false)
107
for _, flag in ipairs(flags) do
108
flag = flag:gsub("^%s*", ""):gsub("%s*$", "")
109
- -- "node" also begins with "no" hence the extra check
110
if flag:sub(1, 2) == "no" and rawget(dest, flag:sub(3)) ~= nil then
111
dest[flag:sub(3)] = false
112
- else
+ elseif rawget(dest, flag) ~= nil then
113
dest[flag] = true
+ else
114
+ minetest.log("warning",
115
+ ("Ignoring unknown modernize flag: %q"):format(flag))
116
end
117
118
0 commit comments