From 0fcfa99134444b7f15cc9171106501bf3c924b15 Mon Sep 17 00:00:00 2001 From: CWX Date: Tue, 28 Jan 2025 16:47:45 +0000 Subject: [PATCH] fix muslePainRequest --- Libraries/Core/Controllers/HideoutController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/Controllers/HideoutController.cs b/Libraries/Core/Controllers/HideoutController.cs index 8546d4ac..d55da0f9 100644 --- a/Libraries/Core/Controllers/HideoutController.cs +++ b/Libraries/Core/Controllers/HideoutController.cs @@ -1014,8 +1014,8 @@ public class HideoutController( private void HandleMusclePain(PmcData pmcData, QteResult finishEffect) { - var hasMildPain = pmcData.Health.BodyParts["Chest"].Effects?["MildMusclePain"]; - var hasSeverePain = pmcData.Health.BodyParts["Chest"].Effects?["SevereMusclePain"]; + var hasMildPain = pmcData.Health.BodyParts["Chest"].Effects?.ContainsKey("MildMusclePain"); + var hasSeverePain = pmcData.Health.BodyParts["Chest"].Effects?.ContainsKey("SevereMusclePain"); // Has no muscle pain at all, add mild if (hasMildPain is null && hasSeverePain is null)