Version: 1.12.6

Date: 2020-03-07
  Bugfixes:
    - prevent another possible call to invalid stop entity
This commit is contained in:
Optera
2020-03-07 13:33:26 +01:00
parent 6745dd26ed
commit 24579f444b
3 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 1.12.6
Date: 2020-03-07
Bugfixes:
- prevent another possible call to invalid stop entity
---------------------------------------------------------------------------------------------------
Version: 1.12.5
Date: 2020-03-03
Bugfixes:

View File

@@ -1,11 +1,11 @@
{
"name": "LogisticTrainNetwork",
"version": "1.12.5",
"version": "1.12.6",
"title": "LTN - Logistic Train Network",
"author": "Optera",
"contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=21729",
"homepage": "https://forums.factorio.com/viewforum.php?f=214",
"description": "Adds new train stops forming a highly configurable, fully automated logistic network.",
"factorio_version": "0.18",
"dependencies": ["base >= 0.18.0", "OpteraLib >= 0.2.0", "?cargo-ships >= 0.0.27"]
"dependencies": ["base >= 0.18.10", "OpteraLib >= 0.2.0", "?cargo-ships >= 0.0.27"]
}

View File

@@ -634,7 +634,7 @@ function ProcessRequest(reqIndex, request)
-- update delivery count and lamps on stations
-- trains will pick a stop by their own logic so we have to parse by name
for stopID, stop in pairs (global.LogisticTrainStops) do
if stop.entity.backer_name == from or stop.entity.backer_name == to then
if stop.entity.valid and (stop.entity.backer_name == from or stop.entity.backer_name == to) then
table.insert(global.LogisticTrainStops[stopID].activeDeliveries, selectedTrain.id)
-- only update blue lamp count, otherwise change to yellow
local current_signal = stop.lampControl.get_control_behavior().get_signal(1)