From bbfb2716aa3f15045d0b17f15452cbaed1268375 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 24 Jan 2023 15:48:05 +1100 Subject: [PATCH] fix(server/crafting): don't set crafted item slot for unstackable items --- modules/crafting/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/crafting/server.lua b/modules/crafting/server.lua index 6544415213..a3719ade9a 100644 --- a/modules/crafting/server.lua +++ b/modules/crafting/server.lua @@ -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