updated changelog

This commit is contained in:
monica
2023-01-07 19:56:01 -05:00
committed by Monica Moniot
parent c3bcb5efbe
commit 16ff3db534
2 changed files with 10 additions and 6 deletions

View File

@@ -3,6 +3,8 @@ Version: 1.2.9
Date: 2022-1-7 Date: 2022-1-7
Bugfixes: Bugfixes:
- Fixed a bug with deliveries sometimes failing to be removed - Fixed a bug with deliveries sometimes failing to be removed
- Fixed several rare crashes
- Fixed cybernetic combinator gui not allowing checkbox toggling when clicking on a checkbox caption
- Updated flib dependency to the correct version - Updated flib dependency to the correct version
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 1.2.8 Version: 1.2.8

View File

@@ -187,12 +187,14 @@ local migrations_table = {
if not train.depot_id then if not train.depot_id then
if train.entity.valid then if train.entity.valid then
local e = get_any_train_entity(train.entity) local e = get_any_train_entity(train.entity)
local stops = e.force.get_train_stops({name = train.depot_name, surface = e.surface}) if e then
for stop in rnext_consume, stops do local stops = e.force.get_train_stops({name = train.depot_name, surface = e.surface})
local new_depot_id = stop.unit_number for stop in rnext_consume, stops do
if map_data.depots[new_depot_id] then local new_depot_id = stop.unit_number
train.depot_id = new_depot_id--[[@as uint]] if map_data.depots[new_depot_id] then
break train.depot_id = new_depot_id--[[@as uint]]
break
end
end end
end end
end end