From 3157b127ac6d849fa4136e1c5e8614bb19f4309d Mon Sep 17 00:00:00 2001 From: mibac138 <5672750+mibac138@users.noreply.github.com> Date: Wed, 17 Dec 2025 10:52:22 +0100 Subject: [PATCH] Set map speed to Normal after gravship landing This is the same behavior as in vanilla --- Source/Client/Patches/GravshipTravelSessionPatches.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/Client/Patches/GravshipTravelSessionPatches.cs b/Source/Client/Patches/GravshipTravelSessionPatches.cs index f46d2b74..1829ac66 100644 --- a/Source/Client/Patches/GravshipTravelSessionPatches.cs +++ b/Source/Client/Patches/GravshipTravelSessionPatches.cs @@ -1,12 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Reflection; using HarmonyLib; using Multiplayer.API; using Multiplayer.Client.Persistent; using Multiplayer.Client.Util; using RimWorld; using RimWorld.Planet; -using System; -using System.Collections.Generic; -using System.Reflection; using Verse; using Verse.Sound; @@ -214,6 +214,10 @@ static void Prefix(WorldComponent_GravshipController __instance) GravshipTravelUtils.StopFreeze(); GravshipTravelUtils.CloseSessionAt(__instance.gravship.destinationTile); + + // LandingEnded calls Find.TickManager.CurTimeSpeed = TimeSpeed.Normal, but that doesn't work in MP as we + // have our own way of changing the map speed. + __instance.map.AsyncTime().SetDesiredTimeSpeed(TimeSpeed.Normal); } static void Finalizer()