Skip to content

Commit 4ff9d0c

Browse files
committed
Version: 1.16.3
Date: 2021-06-30 Bugfixes: - changes to ltn-depot-fluid-cleaning where not applied #269 - trains entering depots with fluids also raise an alert
1 parent dbb2de0 commit 4ff9d0c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 1.16.3
3+
Date: 2021-06-30
4+
Bugfixes:
5+
- changes to ltn-depot-fluid-cleaning where not applied #269
6+
- trains entering depots with fluids also raise an alert
7+
---------------------------------------------------------------------------------------------------
28
Version: 1.16.2
39
Date: 2021-06-28
410
Bugfixes:

info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "LogisticTrainNetwork",
3-
"version": "1.16.2",
3+
"version": "1.16.3",
44
"title": "LTN - Logistic Train Network",
55
"author": "Optera",
66
"contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=21729",

script/settings.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ script.on_event(defines.events.on_runtime_mod_setting_changed, function(event)
9393
if event.setting == "ltn-depot-reset-filters" then
9494
depot_reset_filters = settings.global["ltn-depot-reset-filters"].value
9595
end
96-
if event.setting == "ltn-depot-cleaning" then
96+
if event.setting == "ltn-depot-fluid-cleaning" then
9797
depot_fluid_cleaning = settings.global["ltn-depot-fluid-cleaning"].value
9898
end
9999
if event.setting == "ltn-stop-default-network" then

script/train-events.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function TrainArrives(train)
5858
for fluid, count in pairs(wagon.get_fluid_contents()) do
5959
if count <= depot_fluid_cleaning then
6060
local removed = wagon.remove_fluid({name=fluid, amount=count})
61-
if debug_log then log(string.format("Train \"%s\"[%d]: removed %s %f/%f", trainName, i, fluid, removed, count)) end
61+
if debug_log then log(string.format("Train \"%s\"[%d]: Depot fluid removal %s %f/%f", trainName, i, fluid, removed, count)) end
6262
end
6363
end
6464
end
@@ -76,7 +76,7 @@ function TrainArrives(train)
7676
if table_size(train_items) > 0 then
7777
create_alert(stop.entity, "cargo-warning", {"ltn-message.depot_left_over_cargo", trainName, stop_name}, trainForce)
7878
end
79-
if table_size(train_items) > 0 then
79+
if table_size(train_fluids) > 0 then
8080
create_alert(stop.entity, "cargo-warning", {"ltn-message.depot_left_over_cargo", trainName, stop_name}, trainForce)
8181
end
8282

0 commit comments

Comments
 (0)