mirror of
https://github.com/0ptera/Logistic-Train-Network.git
synced 2025-09-06 20:34:47 +00:00
Version: 1.12.6
Date: 2020-03-07 Bugfixes: - prevent another possible call to invalid stop entity
This commit is contained in:
@@ -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:
|
||||
|
@@ -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"]
|
||||
}
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user