From bf2ba5be9dc51aaaed3b134e0babdf269b69b78e Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Wed, 31 Mar 2021 22:15:08 +0200 Subject: [PATCH] Schema: Fix numbered entries --- schema.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/schema.lua b/schema.lua index 7a81448..b378498 100644 --- a/schema.lua +++ b/schema.lua @@ -36,6 +36,7 @@ function generate_settingtypes(self) settings = {"[" .. table.concat(modlib.table.repetition("*", self._level)) .. self.name .. "]"} end local function setting(key, value_scheme) + key = tostring(key) assert(not key:find("[=%.%s]")) value_scheme.name = self.name .. "." .. key value_scheme.title = value_scheme.title or self.title .. " " .. field_name_to_title(key)