mirror of
https://github.com/0ptera/Logistic-Train-Network.git
synced 2025-09-06 20:34:47 +00:00
Version: 1.13.8
Date: 2020-05-29 Bugfixes: - Checks adjusting requester amounts used stop.backer_name instead of stop.unit_number. https://forums.factorio.com/viewtopic.php?p=496164#p496164
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.13.8
|
||||||
|
Date: 2020-05-29
|
||||||
|
Bugfixes:
|
||||||
|
- Checks adjusting requester amounts used stop.backer_name instead of stop.unit_number. https://forums.factorio.com/viewtopic.php?p=496164#p496164
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 1.13.7
|
Version: 1.13.7
|
||||||
Date: 2020-05-27
|
Date: 2020-05-27
|
||||||
Features:
|
Features:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "LogisticTrainNetwork",
|
"name": "LogisticTrainNetwork",
|
||||||
"version": "1.13.7",
|
"version": "1.13.8",
|
||||||
"title": "LTN - Logistic Train Network",
|
"title": "LTN - Logistic Train Network",
|
||||||
"author": "Optera",
|
"author": "Optera",
|
||||||
"contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=21729",
|
"contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=21729",
|
||||||
|
@@ -275,7 +275,7 @@ function UpdateStop(stopID, stop)
|
|||||||
traincount = stop.parked_train.get_item_count(signal_name)
|
traincount = stop.parked_train.get_item_count(signal_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
if delivery.to == stop.entity.backer_name then
|
if delivery.to_id == stop.entity.unit_number then
|
||||||
local newcount = count + traincount
|
local newcount = count + traincount
|
||||||
if newcount > 0 then newcount = 0 end --make sure we don't turn it into a provider
|
if newcount > 0 then newcount = 0 end --make sure we don't turn it into a provider
|
||||||
if debug_log then log("(UpdateStop) "..stop.entity.backer_name.." {"..network_id_string.."} updating requested count with train inventory: "..item.." "..count.."+"..traincount.."="..newcount) end
|
if debug_log then log("(UpdateStop) "..stop.entity.backer_name.." {"..network_id_string.."} updating requested count with train inventory: "..item.." "..count.."+"..traincount.."="..newcount) end
|
||||||
@@ -295,7 +295,7 @@ function UpdateStop(stopID, stop)
|
|||||||
|
|
||||||
else
|
else
|
||||||
-- calculate items +- deliveries
|
-- calculate items +- deliveries
|
||||||
if delivery.to == stop.entity.backer_name then
|
if delivery.to_id == stop.entity.unit_number then
|
||||||
local newcount = count + deliverycount
|
local newcount = count + deliverycount
|
||||||
if newcount > 0 then newcount = 0 end --make sure we don't turn it into a provider
|
if newcount > 0 then newcount = 0 end --make sure we don't turn it into a provider
|
||||||
if debug_log then log("(UpdateStop) "..stop.entity.backer_name.." {"..network_id_string.."} updating requested count with delivery: "..item.." "..count.."+"..deliverycount.."="..newcount) end
|
if debug_log then log("(UpdateStop) "..stop.entity.backer_name.." {"..network_id_string.."} updating requested count with delivery: "..item.." "..count.."+"..deliverycount.."="..newcount) end
|
||||||
|
Reference in New Issue
Block a user