forked from SoDOff-Project/sodoff
fix lab missions completion
This commit is contained in:
parent
379b731f61
commit
8416b47fa8
@ -114,7 +114,7 @@ public class MissionService {
|
|||||||
ctx.TaskStatuses.Add(status);
|
ctx.TaskStatuses.Add(status);
|
||||||
} else {
|
} else {
|
||||||
status.Payload = xmlPayload;
|
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();
|
ctx.SaveChanges();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user