diff --git a/core/schemas.lua b/core/schemas.lua index 2e78a6e..ab92f1a 100644 --- a/core/schemas.lua +++ b/core/schemas.lua @@ -198,7 +198,7 @@ owner = "string?", location = { coordinates = { - __type = "array", + __type = "array?", __min = 3, __max = 3, __entry = "number" diff --git a/util/configHelpers.lua b/util/configHelpers.lua index ec6f947..44af914 100644 --- a/util/configHelpers.lua +++ b/util/configHelpers.lua @@ -87,7 +87,7 @@ if subConfig[path] then subConfig = subConfig[path] else - if addSchema:sub(1,6) == "number" then + if type(addSchema) == "string" and addSchema:sub(1,6) == "number" then subConfig[path] = 0 else subConfig[path] = {}