1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-23 22:22:34 +02:00

Fix autostash prio

This commit is contained in:
Gerkiz
2025-11-08 13:48:21 +01:00
parent 38f2e74250
commit 75dd6d4d7e

View File

@@ -635,7 +635,13 @@ local function auto_stash(player, event)
end
end
local furnace_fuels = {}
local furnace_fuels =
{
['coal'] = 0,
['iron-ore'] = 0,
['copper-ore'] = 0,
['stone'] = 0
}
local full_insert = { full = nil, name = nil }
for i = #inventory, 1, -1 do
@@ -649,7 +655,7 @@ local function auto_stash(player, event)
if ctrl and this.insert_into_furnace then
if button == defines.mouse_button_type.right then
if is_furnace_fuel or is_resource then
furnace_fuels[name] = inventory[i].count or 0
furnace_fuels[name] = (furnace_fuels[name] or 0) + inventory[i].count
end
end
elseif shift and this.insert_into_wagon then -- insert into wagon