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:
parent
51acfff383
commit
72f7c5106e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user