EmmyLua -> LuaLS

This commit is contained in:
Van
2026-06-16 17:50:29 +03:00
parent 60003eea73
commit 1799d6d32e
37 changed files with 135 additions and 314 deletions

View File

@@ -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