Mod: .getInfo() -> :getInfo()
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
local modInfo = Mod.getInfo('smc__core__creature')
|
||||
local modInfo = Mod:getInfo('smc__core__creature')
|
||||
local require = modInfo.require
|
||||
|
||||
return require('Creature')
|
||||
|
||||
@@ -48,7 +48,7 @@ function Creature:new(entityDef)
|
||||
|
||||
-- Add the short mod name prefix to the entity name.
|
||||
if s._add_mod_name then
|
||||
s._name = Mod.getInfo().shortName .. ':' .. s._name
|
||||
s._name = Mod:getInfo().shortName .. ':' .. s._name
|
||||
end
|
||||
|
||||
local onActivate = c.on_activate or function() end
|
||||
|
||||
Reference in New Issue
Block a user