Mod: change Mod:getClassExtended logic

This commit is contained in:
Van
2025-08-30 14:13:27 +00:00
parent 704db1517d
commit 5542f4edd9

View File

@@ -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