From 5542f4edd992d5f0b2f93e7fc8f904ef82dae719 Mon Sep 17 00:00:00 2001 From: Vanic Date: Sat, 30 Aug 2025 14:13:27 +0000 Subject: [PATCH] Mod: change Mod:getClassExtended logic --- mods/API/Mod/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/API/Mod/init.lua b/mods/API/Mod/init.lua index 52a2185..955d8fc 100644 --- a/mods/API/Mod/init.lua +++ b/mods/API/Mod/init.lua @@ -40,10 +40,10 @@ function Mod:getClassInstance() end --- Inherit from a class provided by the mod ----@param ChildClass table +---@param ChildClass table? ---@return table function Mod:getClassExtended(ChildClass) - local instance = setmetatable(ChildClass or {}, { __index = self.Class }) + ChildClass = Api.getClassExtended(self.Class, ChildClass or {}) - return instance + return ChildClass end \ No newline at end of file