mirror of
https://github.com/appgurueu/modlib.git
synced 2024-08-21 22:04:10 +02: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
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user