Mod: change Mod:getClassExtended logic
This commit is contained in:
@@ -40,10 +40,10 @@ function Mod:getClassInstance()
|
|||||||
end
|
end
|
||||||
|
|
||||||
--- Inherit from a class provided by the mod
|
--- Inherit from a class provided by the mod
|
||||||
---@param ChildClass table
|
---@param ChildClass table?
|
||||||
---@return table
|
---@return table
|
||||||
function Mod:getClassExtended(ChildClass)
|
function Mod:getClassExtended(ChildClass)
|
||||||
local instance = setmetatable(ChildClass or {}, { __index = self.Class })
|
ChildClass = Api.getClassExtended(self.Class, ChildClass or {})
|
||||||
|
|
||||||
return instance
|
return ChildClass
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user