Skip to content

Commit

Permalink
fix(server/crafting): don't set crafted item slot for unstackable items
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jan 24, 2023
1 parent 3bd1a5d commit bbfb271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/crafting/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ lib.callback.register('ox_inventory:craftItem', function(source, id, index, reci
end
end

Inventory.AddItem(left, craftedItem, recipe.count or 1, recipe.metadata or {}, toSlot)
Inventory.AddItem(left, craftedItem, recipe.count or 1, recipe.metadata or {}, craftedItem.stack and toSlot or nil)
end

return true
Expand Down

0 comments on commit bbfb271

Please sign in to comment.