diff --git a/CykaQuick/Lua/Cyka/quickstack.lua b/CykaQuick/Lua/Cyka/quickstack.lua index 45e1a80..9ace478 100644 --- a/CykaQuick/Lua/Cyka/quickstack.lua +++ b/CykaQuick/Lua/Cyka/quickstack.lua @@ -130,6 +130,7 @@ local function tryMoveItem(item, itemTree, force) true) if moved then itemLocation.maxFits = itemLocation.inventory.HowManyCanBePut(item.Prefab, itemLocation.slotIndex) + break end -- if moved then -- MyModGlobal.debugPrint(string.format("Moved item to existing stack at slot index: %d", itemLocation .slotIndex)) @@ -163,6 +164,7 @@ local function tryMoveItem(item, itemTree, force) true) if moved then itemLocation.maxFits = itemLocation.inventory.HowManyCanBePut(item.Prefab, itemLocation.slotIndex) + break end -- if moved then -- MyModGlobal.debugPrint(string.format("Moved item to empty slot at index: %d", itemLocation.slotIndex))