EmmyLua -> LuaLS
This commit is contained in:
@@ -24,8 +24,7 @@ local function entityDefToLuantiDef(entityDef)
|
||||
local s = entityDef.settings
|
||||
local c = entityDef.callbacks or {}
|
||||
|
||||
---@type EntityDefinition
|
||||
local luantiDef = tableMerge(s, c)
|
||||
local luantiDef = tableMerge(s, c) --[[@as EntityDefinition]]
|
||||
|
||||
return luantiDef
|
||||
end
|
||||
@@ -45,6 +44,7 @@ function Creature:new(entityDef)
|
||||
|
||||
local s = entityDef.settings
|
||||
local c = entityDef.callbacks
|
||||
assert(c ~= nil)
|
||||
|
||||
-- Add the short mod name prefix to the entity name.
|
||||
if s._add_mod_name then
|
||||
@@ -66,8 +66,7 @@ function Creature:new(entityDef)
|
||||
initCustomFields.name = nil
|
||||
initCustomFields.object = nil
|
||||
|
||||
---@type LuaEntity
|
||||
self = tableMerge(self, initCustomFields)
|
||||
self = tableMerge(self, initCustomFields) --[[@as LuaEntity]]
|
||||
|
||||
-- If an initialization callback was specified for the entity, then we call it.
|
||||
if c.on_activate ~= nil then
|
||||
|
||||
Reference in New Issue
Block a user