Schema: Improve code quality

This commit is contained in:
Lars Mueller 2022-05-13 11:58:42 +02:00
parent 9578d87d8b
commit 11d47f1041

@ -40,7 +40,7 @@ function generate_settingtypes(self)
if self._level > 0 then if self._level > 0 then
-- HACK: Minetest automatically adds the modname -- HACK: Minetest automatically adds the modname
-- TODO simple names (not modname.field.other_field) -- TODO simple names (not modname.field.other_field)
settings = {"[" .. table.concat(modlib.table.repetition("*", self._level)) .. self.name .. "]"} settings = {"[" .. ("*"):rep(self._level) .. self.name .. "]"}
end end
local function setting(key, value_scheme) local function setting(key, value_scheme)
key = tostring(key) key = tostring(key)