Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions info.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"(?)kry-vehicle-grids",
"(?)electric-trains",
"(?)pypostprocessing",
"(?)auto-train-refuel",
"(?)LogisticTrainNetwork",
"!Noxys_Multidirectional_Trains"
]
}