Skip to content

Commit 02159af

Browse files
committed
Version: 1.16.9
Date: 2022-06-19 Bugfixes: - additional merged delivery stack size check #271
1 parent 6edd69e commit 02159af

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

changelog.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 1.16.9
3+
Date: 2022-06-19
4+
Bugfixes:
5+
- additional merged delivery stack size check #271
6+
---------------------------------------------------------------------------------------------------
27
Version: 1.16.8
38
Date: 2022-06-19
49
Features:
510
- show cargo as rich text in no-provider-found, provider-found, creating-delivery #283
6-
- added map-setting: Providers output existing cargo (default on), workaround for inserters stuck with items # 272, #294
11+
- added map-setting: Providers output existing cargo (default on), workaround for inserters stuck with items #272, #294
712
---------------------------------------------------------------------------------------------------
813
Version: 1.16.7
914
Date: 2021-11-17

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.8",
3+
"version": "1.16.9",
44
"title": "LTN - Logistic Train Network",
55
"author": "Optera",
66
"contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=21729",

script/constants.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,6 @@ match = string.match
7171
match_string = "([^,]+),([^,]+)"
7272
btest = bit32.btest
7373
band = bit32.band
74+
min = math.min
7475
ceil = math.ceil
7576
sort = table.sort

script/dispatcher.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ function ProcessRequest(reqIndex, request)
601601
loadingList[i].stacks = loadingList[i].stacks - (totalStacks - trainInventorySize)
602602
totalStacks = trainInventorySize
603603
local newcount = loadingList[i].stacks * game.item_prototypes[loadingList[i].name].stack_size
604-
loadingList[i].count = newcount
604+
loadingList[i].count = min(newcount, loadingList[i].count)
605605
break
606606
else
607607
-- remove item and try again

0 commit comments

Comments
 (0)