From c9bec6234b49a80bf122fa32bae4a8698ed5394f Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 1 Apr 2025 01:34:45 +0200 Subject: [PATCH] Add missing breaks to try move item --- CykaQuick/Lua/Cyka/quickstack.lua | 2 ++ 1 file changed, 2 insertions(+) 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))