Skip to content

Commit 51205c5

Browse files
committed
fix(create-item): remove bracket wrapper causing moveToBag crash and ensure LF endings
1 parent 9f230a0 commit 51205c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modtools/create-item.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ local function moveToBag(itemsToBag, creator)
8383
-- Use BAG item type, NOT BOX. BOX creates chests/coffers (item_boxst),
8484
-- BAG creates actual bags (item_bagst) for holding powder/seeds.
8585
local bagType = dfhack.items.findType('BAG:NONE')
86-
local bags = {dfhack.items.createItem(creator, bagType, -1, containerMat.type, containerMat.index)}
86+
local bags = dfhack.items.createItem(creator, bagType, -1, containerMat.type, containerMat.index)
8787
if not bags[1] then
8888
return items_list
8989
end

0 commit comments

Comments
 (0)