Skip to content

Commit 326bd68

Browse files
committed
Version: 1.12.7
Date: 2020-03-20 Bugfixes: - removed support for train scedule conditions item/fluid > n https://forums.factorio.com/viewtopic.php?f=214&t=82576
1 parent 24579f4 commit 326bd68

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode/*

changelog.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 1.12.7
3+
Date: 2020-03-20
4+
Bugfixes:
5+
- removed support for train scedule conditions item/fluid > n https://forums.factorio.com/viewtopic.php?f=214&t=82576
6+
---------------------------------------------------------------------------------------------------
27
Version: 1.12.6
38
Date: 2020-03-07
49
Bugfixes:

info.json

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

script/stop-update.lua

+8-8
Original file line numberDiff line numberDiff line change
@@ -460,20 +460,20 @@ function UpdateStopOutput(trainStop)
460460
for _, c in pairs(conditions) do
461461
if c.condition and c.condition.first_signal then -- loading without mods can make first signal nil?
462462
if c.type == "item_count" then
463-
if (c.condition.comparator == "=" and c.condition.constant == 0) then --train expects to be unloaded of each of this item
463+
if (c.condition.comparator == "=" and c.condition.constant == 0) then
464+
--train expects to be unloaded of each of this item
464465
inventory[c.condition.first_signal.name] = nil
465-
elseif c.condition.comparator == "" then --train expects to be loaded to x of this item
466+
elseif c.condition.comparator == "" then
467+
--train expects to be loaded to x of this item
466468
inventory[c.condition.first_signal.name] = c.condition.constant
467-
elseif c.condition.comparator == ">" then --train expects to be loaded to x of this item
468-
inventory[c.condition.first_signal.name] = c.condition.constant + 1
469469
end
470470
elseif c.type == "fluid_count" then
471-
if (c.condition.comparator == "=" and c.condition.constant == 0) then --train expects to be unloaded of each of this fluid
471+
if (c.condition.comparator == "=" and c.condition.constant == 0) then
472+
--train expects to be unloaded of each of this fluid
472473
fluidInventory[c.condition.first_signal.name] = -1
473-
elseif c.condition.comparator == "" then --train expects to be loaded to x of this fluid
474+
elseif c.condition.comparator == "" then
475+
--train expects to be loaded to x of this fluid
474476
fluidInventory[c.condition.first_signal.name] = c.condition.constant
475-
elseif c.condition.comparator == ">" then --train expects to be loaded to x of this fluid
476-
fluidInventory[c.condition.first_signal.name] = c.condition.constant + 1
477477
end
478478
end
479479
end

0 commit comments

Comments
 (0)