updated todo

This commit is contained in:
Monica Moniot
2022-12-02 13:58:33 -05:00
parent 9c8c54c3ee
commit 37e4eb22fd
2 changed files with 2 additions and 0 deletions

1
TODO
View File

@@ -11,3 +11,4 @@ minor:
close gui when the combinator is destroyed close gui when the combinator is destroyed
do not play close sound when a different gui is opened do not play close sound when a different gui is opened
gui can desync if settings are changed outside of it while it is open gui can desync if settings are changed outside of it while it is open
give the combinators a sensible reaction to low or no power

View File

@@ -372,6 +372,7 @@ local function tick_poll_station(map_data, mod_settings)
station_id = map_data.active_station_ids[tick_data.i] station_id = map_data.active_station_ids[tick_data.i]
station = map_data.stations[station_id] station = map_data.stations[station_id]
if station then if station then
--NOTE: polling trains_limit here is expensive and not strictly necessary but using it to early out saves more ups
if station.network_name and station.deliveries_total < station.entity_stop.trains_limit then if station.network_name and station.deliveries_total < station.entity_stop.trains_limit then
break break
end end