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

@@ -2,7 +2,7 @@
---Each instance of such a class registers one or more nodes and implements their logic.
---
---**Note**: An instance is static for all nodes it registers.
---@interface NodeSuperClass
---@class NodeSuperClass
---@type table<string, NodeSuperClass>
local nodeSuperClasses = {}

View File

@@ -40,7 +40,7 @@ end
---@param itemName ItemStack|ItemStackString
---@return Item.ItemDefinition|Node.NodeDefinition
function Smc.getItemDefinition(itemName)
if type(itemName) == 'table' or type(itemName) == 'userdata' then
if type(itemName) ~= 'string' then
itemName = itemName:get_name()
end