mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +01:00
Schema: Make optional values optional again
This commit is contained in:
parent
49472bfc66
commit
80913644b6
@ -182,10 +182,10 @@ function load(self, override, params)
|
||||
end
|
||||
end
|
||||
if override == nil and not converted then
|
||||
if self.default ~= nil then
|
||||
return self.default
|
||||
elseif self.type == "table" then
|
||||
if self.type == "table" and self.default == nil then
|
||||
override = {}
|
||||
else
|
||||
return self.default
|
||||
end
|
||||
end
|
||||
local _error = error
|
||||
|
Loading…
Reference in New Issue
Block a user