mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-07 11:16:03 -06:00
made depot polling event based
This commit is contained in:
@@ -5,14 +5,16 @@ local migrations_table = {
|
||||
["0.2.0"] = function()
|
||||
---@type MapData
|
||||
local map_data = global
|
||||
for k, station in pairs(map_data.stations) do
|
||||
map_data.tick_state = STATE_INIT
|
||||
map_data.all_station_ids = {}
|
||||
for id, station in pairs(map_data.stations) do
|
||||
station.p_count_or_r_threshold_per_item = {}
|
||||
station.p_threshold = nil
|
||||
station.is_all = nil
|
||||
set_station_from_comb_state(station)
|
||||
set_combinator_operation(station.entity_comb1, OPERATION_PRIMARY_IO)
|
||||
map_data.all_station_ids[#map_data.all_station_ids + 1] = id
|
||||
end
|
||||
map_data.tick_state = STATE_INIT
|
||||
end,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user