From 9c718e4193def4a9361ab9c6561a1777a0a37713 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Sat, 4 Mar 2023 15:35:32 +0000 Subject: [PATCH] fix NREs in debugGUI --- QSB/Utility/DebugGUI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QSB/Utility/DebugGUI.cs b/QSB/Utility/DebugGUI.cs index 07223619..54139539 100644 --- a/QSB/Utility/DebugGUI.cs +++ b/QSB/Utility/DebugGUI.cs @@ -179,10 +179,10 @@ internal class DebugGUI : MonoBehaviour, IAddComponentOnStart if (player.IsReady && QSBWorldSync.AllObjectsReady) { - WriteLine(2, $"Illuminated : {player.LightSensor.IsIlluminated()}"); + WriteLine(2, $"Illuminated : {player.LightSensor?.IsIlluminated()}"); var singleLightSensor = (SingleLightSensor)player.LightSensor; // will be null for remote player light sensors - if (singleLightSensor._lightSources != null) + if (singleLightSensor?._lightSources != null) { foreach (var item in singleLightSensor._lightSources) {