Mod: .getInfo() -> :getInfo()

This commit is contained in:
Van
2026-11-13 17:43:26 +03:00
parent 1e91290b02
commit e540107876
55 changed files with 73 additions and 73 deletions

View File

@@ -22,7 +22,7 @@ end
---Return table with mod name, path and require function.
---@param modname? string Specify a name of mod to get its info
---@return Mod.Info
function Mod.getInfo(modname)
function Mod:getInfo(modname)
local name = modname or core.get_current_modname()
local shortName = getShortModName(name)
local path = core.get_modpath(name)
@@ -46,7 +46,7 @@ end
--[[
function Mod:new()
---@type Mod
local instance = setmetatable(Mod.getInfo(), { __index = self })
local instance = setmetatable(Mod:getInfo(), { __index = self })
return instance
end