1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-07 13:31:40 +02:00

minor change to autostash

This commit is contained in:
Gerkiz 2021-06-07 14:04:44 +02:00
parent 51acfff383
commit 72f7c5106e

View File

@ -212,8 +212,13 @@ local function insert_item_into_chest(player_inventory, chests, filtered_chests,
local to_insert = floor(count / #chests)
if to_insert <= 0 then
return
if count > 0 then
to_insert = count
else
return
end
end
local variate = count % #chests
local chests_available = #chests
local tries = #chests