From f61211244542a9981d9f5fb88bfca1f69902eff6 Mon Sep 17 00:00:00 2001 From: Maplewheels Date: Sat, 18 Apr 2026 22:10:28 -0400 Subject: [PATCH] Fixed OnUpdate() not passing in deltaTime instead of totalTime. --- .../SharedSource/LuaCs/_Services/HarmonyEventPatchesService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/HarmonyEventPatchesService.cs b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/HarmonyEventPatchesService.cs index 888e74d8b..fe54d9096 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/HarmonyEventPatchesService.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/_Services/HarmonyEventPatchesService.cs @@ -53,7 +53,7 @@ internal class HarmonyEventPatchesService : ISystem [HarmonyPatch(typeof(CoroutineManager), nameof(CoroutineManager.Update)), HarmonyPostfix] public static void CoroutineManager_Update_Post() { - _eventService.PublishEvent(x => x.OnUpdate(Timing.TotalTime)); + _eventService.PublishEvent(x => x.OnUpdate(CoroutineManager.DeltaTime)); _loggerService.ProcessLogs(); }