added fixes

This commit is contained in:
Monica Moniot
2022-11-11 22:13:33 -05:00
parent 52f6088904
commit 7f44dae0ec
7 changed files with 29 additions and 20 deletions

View File

@@ -32,6 +32,9 @@ function remove_manifest(map_data, station, manifest, sign)
end
set_comb2(map_data, station)
station.deliveries_total = station.deliveries_total - 1
if station.deliveries_total == 0 and station.entity_comb1.valid then
set_combinator_operation(station.entity_comb1, OPERATION_PRIMARY_IO)
end
end
---@param map_data MapData
@@ -448,8 +451,8 @@ local function tick_dispatch(map_data, mod_settings)
highest_prior = prior
can_be_serviced = true
elseif d < INF then
can_be_serviced = true
best = j
can_be_serviced = true
end
end
end