From fbe969837641db497e5ec9ba7a9d5cde7b444c1c Mon Sep 17 00:00:00 2001 From: user Date: Wed, 16 Oct 2024 02:35:44 +0300 Subject: [PATCH] Fixed pawns and mechs frozen after they were teleported avay from ship move target area. --- Source/1.5/ShipInteriorMod2.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/1.5/ShipInteriorMod2.cs b/Source/1.5/ShipInteriorMod2.cs index c9b6ae42..0e301784 100644 --- a/Source/1.5/ShipInteriorMod2.cs +++ b/Source/1.5/ShipInteriorMod2.cs @@ -2215,9 +2215,8 @@ public static void MoveShip(Building core, Map targetMap, IntVec3 adjustment, Fa { if (thing is Pawn pawn && (!pawn.Dead || !pawn.Downed)) { - pawn.pather.StopDead(); thing.Position = CellFinder.RandomClosewalkCellNear(thing.Position, targetMap, 50, (IntVec3 x) => !targetArea.Contains(x)); - pawn.pather.nextCell = pawn.Position.RandomAdjacentCell8Way(); + pawn.Notify_Teleported(); } else if (!thing.Destroyed) thing.Destroy();