mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-25 16:53:46 +01: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
|
||||
-- HACK: Minetest automatically adds the modname
|
||||
-- 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
|
||||
local function setting(key, value_scheme)
|
||||
key = tostring(key)
|
||||
|
Loading…
Reference in New Issue
Block a user