EmmyLua -> LuaLS
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user