mirror of
https://github.com/appgurueu/modlib.git
synced 2025-02-17 00:32:35 +01:00
Schema: Make optional values optional again
This commit is contained in:
@ -182,10 +182,10 @@ function load(self, override, params)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if override == nil and not converted then
|
if override == nil and not converted then
|
||||||
if self.default ~= nil then
|
if self.type == "table" and self.default == nil then
|
||||||
return self.default
|
|
||||||
elseif self.type == "table" then
|
|
||||||
override = {}
|
override = {}
|
||||||
|
else
|
||||||
|
return self.default
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local _error = error
|
local _error = error
|
||||||
|
Reference in New Issue
Block a user