From f7348ccee826989576c862c7b918a99e77890835 Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Fri, 17 Mar 2023 07:01:55 -0700 Subject: [PATCH] SafeSkinColor needs to catch InvalidOperationException, too, it seems --- 1.4/source/RJW_Menstruation/RJW_Menstruation/Utility.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/Utility.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/Utility.cs index af02fef..4f8b62f 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/Utility.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/Utility.cs @@ -463,6 +463,10 @@ namespace RJW_Menstruation { return Color.white; } + catch (InvalidOperationException) // And sometimes it can try to pull the value of a Nullable without checking, too + { + return Color.white; + } } } }