Mod: .getInfo() -> :getInfo()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user