Item: add param addModName

This commit is contained in:
Van
2026-01-05 15:44:53 +03:00
parent 6236a12ca9
commit a08934c6e4
6 changed files with 26 additions and 27 deletions

View File

@@ -17,17 +17,15 @@ local defMerge = function(...)
end
---@param nodeDef Node.NodeDefinition
---@param addModName boolean? Whether to add the mod name to the settings.name. Default: `true`
---@return Node
function Node:new(nodeDef, addModName)
function Node:new(nodeDef)
---Adding default parameters
nodeDef = defMerge(nodeDef, self.defaultDef, true)
nodeDef.settings.visual = 'item_3d'
---@type Node
local instance = Item:new(nodeDef, addModName)
local instance = Item:new(nodeDef)
return instance
end