Version: 1.18.6

Date: 2024-01-30
  Bugfixes:
    - Message delivery-removed-depot used fallback stop names instead of Rich Text #331
This commit is contained in:
Optera
2024-01-30 07:18:08 +01:00
parent f4e3a14b3f
commit 7b2f47b1fa
3 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 1.18.6
Date: 2024-01-30
Bugfixes:
- Message delivery-removed-depot used fallback stop names instead of Rich Text #331
---------------------------------------------------------------------------------------------------
Version: 1.18.5
Date: 2023-08-30
Features:

View File

@@ -1,6 +1,6 @@
{
"name": "LogisticTrainNetwork",
"version": "1.18.5",
"version": "1.18.6",
"title": "LTN - Logistic Train Network",
"author": "Optera",
"contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=21729",

View File

@@ -50,6 +50,8 @@ function TrainArrives(train)
local delivery = global.Dispatcher.Deliveries[train.id]
if delivery then
-- delivery should have been removed when leaving requester. Handle like delivery timeout.
local from_entity = global.LogisticTrainStops[delivery.from_id] and global.LogisticTrainStops[delivery.from_id].entity
local to_entity = global.LogisticTrainStops[delivery.to_id] and global.LogisticTrainStops[delivery.to_id].entity
if message_level >= 1 then
printmsg({
"ltn-message.delivery-removed-depot",