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
Bugfixes:
- 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
---------------------------------------------------------------------------------------------------
Version: 1.2.8

View File

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