Mod: .getInfo() -> :getInfo()
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
local modInfo = Mod.getInfo('smc__core__item')
|
||||
local modInfo = Mod:getInfo('smc__core__item')
|
||||
local require = modInfo.require
|
||||
|
||||
return require('Item')
|
||||
|
||||
@@ -86,7 +86,7 @@ end
|
||||
---@param itemDef Item.ItemDefinition
|
||||
---@return ItemDefinition
|
||||
local function itemDefToLuantiDef(itemDef)
|
||||
local modName = Mod.getInfo().shortName
|
||||
local modName = Mod:getInfo().shortName
|
||||
local S = core.get_translator(modName)
|
||||
|
||||
local s = itemDef.settings
|
||||
@@ -167,7 +167,7 @@ function Item:new(itemDef)
|
||||
itemDef = tableMerge(itemDef, self.defaultDef, true) --[[@as Item.ItemDefinition]]
|
||||
local s = itemDef.settings
|
||||
|
||||
local shortModName = Mod.getInfo().shortName
|
||||
local shortModName = Mod:getInfo().shortName
|
||||
|
||||
if s._add_mod_name then
|
||||
s.name = shortModName .. ':' .. s.name
|
||||
|
||||
Reference in New Issue
Block a user