mirror of
https://github.com/appgurueu/modlib.git
synced 2024-08-19 21:04:13 +02:00
Schema: Improve code quality
This commit is contained in:
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user