From f1b68d28276b84d9b961e3610723be235eb01917 Mon Sep 17 00:00:00 2001 From: RMROC451 Date: Mon, 1 Sep 2025 23:53:23 -0500 Subject: [PATCH] one more of the ill fated traincontroller shared usages while on host processing. --- .../Patches/AutoEngineerPlanner_HandleCommand_Patch.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TweaksAndThings/Patches/AutoEngineerPlanner_HandleCommand_Patch.cs b/TweaksAndThings/Patches/AutoEngineerPlanner_HandleCommand_Patch.cs index a750b54..8d2f982 100644 --- a/TweaksAndThings/Patches/AutoEngineerPlanner_HandleCommand_Patch.cs +++ b/TweaksAndThings/Patches/AutoEngineerPlanner_HandleCommand_Patch.cs @@ -34,8 +34,7 @@ internal class AutoEngineerPlanner_HandleCommand_Patch { TweaksAndThingsPlugin tweaksAndThings = SingletonPluginBase.Shared; if (!tweaksAndThings.IsEnabled() || !tweaksAndThings.SafetyFirst() || (sender.IsRemote && !tweaksAndThings.SafetyFirstClientEnforce()) || command.MaxSpeedMph <= governedSpeed) return true; - BaseLocomotive loco = TrainController.Shared.SelectedLocomotive; - if (TrainController.Shared.TryGetCarForId(command.LocomotiveId, out Car c)) loco = (BaseLocomotive)c; + BaseLocomotive loco = __instance._locomotive; if (SafetyFirstGoverningApplies(loco)) {