Add missing breaks to try move item

This commit is contained in:
2025-04-01 01:34:45 +02:00
parent 1608c95091
commit c9bec6234b

View File

@@ -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))