From 026b9588e7c02807e086be8252f7d8e7fa70b345 Mon Sep 17 00:00:00 2001 From: "Henning P. Schmiedehausen" Date: Wed, 5 Aug 2026 14:11:57 -0700 Subject: [PATCH] add support for refueling exclusion in LTN --- control.lua | 17 ++++++++++------- info.json | 2 ++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/control.lua b/control.lua index ef0e1f7..768bc84 100644 --- a/control.lua +++ b/control.lua @@ -45,16 +45,19 @@ local train_queue_semaphore = false -- Interacts with other mods based on what MU locomotives were created local function CallRemoteInterface() - -- Make sure FuelTrainStop plays nice with magu's ElectricTrain in the MU versions - if remote.interfaces["FuelTrainStop"] then - for std,mu in pairs(storage.upgrade_pairs) do - if std:match("^et%-electric%-locomotive%-%d$") or - std:match("^fusion%-locomotive%-%d$") then - remote.call("FuelTrainStop", "exclude_from_fuel_schedule", mu) + -- Make sure FuelTrainStop and LTN plays nice with magu's ElectricTrain in the MU versions + for std,mu in pairs(storage.upgrade_pairs) do + if std:match("^et%-electric%-locomotive%-%d$") or + std:match("^fusion%-locomotive%-%d$") then + if remote.interfaces["FuelTrainStop"] then + remote.call("FuelTrainStop", "exclude_from_fuel_schedule", mu) + end + if remote.interfaces["logistic-train-network"] and remote.interfaces["logistic-train-network"]["exclude_from_fuel_schedule"] then + remote.call("logistic-train-network", "exclude_from_fuel_schedule", mu) end end end - + -- Add MU versions of Fluid Trains locomotives to the mod's update list if remote.interfaces["fluidTrains_hook"] then if storage.upgrade_pairs["SteamTrains-locomotive"] then diff --git a/info.json b/info.json index 165a3a1..859ca4b 100644 --- a/info.json +++ b/info.json @@ -30,6 +30,8 @@ "(?)kry-vehicle-grids", "(?)electric-trains", "(?)pypostprocessing", + "(?)auto-train-refuel", + "(?)LogisticTrainNetwork", "!Noxys_Multidirectional_Trains" ] }