From 8416b47fa8c6886500aadc04a787a03385614214 Mon Sep 17 00:00:00 2001 From: Spirtix Date: Tue, 11 Jul 2023 18:04:13 +0200 Subject: [PATCH] fix lab missions completion --- src/Services/MissionService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/MissionService.cs b/src/Services/MissionService.cs index 3ec094c..2c69f6f 100644 --- a/src/Services/MissionService.cs +++ b/src/Services/MissionService.cs @@ -114,7 +114,7 @@ public class MissionService { ctx.TaskStatuses.Add(status); } else { status.Payload = xmlPayload; - status.Completed = completed; + if (!status.Completed) status.Completed = completed; // NOTE: Lab missions update the payload after the task is marked as completed with the completed flag set to false. The official servers ignore this flag when it's already been set to true } ctx.SaveChanges(); }