mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 00:32:43 +00:00
fix NREs in debugGUI
This commit is contained in:
parent
fd91b3535a
commit
9c718e4193
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user