mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-06 00:39:55 +00:00
void return type
This commit is contained in:
parent
f86bf56a1d
commit
14393aff64
@ -186,18 +186,18 @@ internal class LightSensorPatches : QSBPatch
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
private static bool UpdateLocalIllumination(SingleLightSensor __instance)
|
private static void UpdateLocalIllumination(SingleLightSensor __instance)
|
||||||
{
|
{
|
||||||
if (!QSBWorldSync.AllObjectsReady)
|
if (!QSBWorldSync.AllObjectsReady)
|
||||||
{
|
{
|
||||||
return true;
|
return;
|
||||||
}
|
}
|
||||||
var qsbLightSensor = __instance.GetWorldObject<QSBLightSensor>();
|
var qsbLightSensor = __instance.GetWorldObject<QSBLightSensor>();
|
||||||
|
|
||||||
qsbLightSensor._locallyIlluminated = false;
|
qsbLightSensor._locallyIlluminated = false;
|
||||||
if (__instance._lightSources == null || __instance._lightSources.Count == 0)
|
if (__instance._lightSources == null || __instance._lightSources.Count == 0)
|
||||||
{
|
{
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
var sensorWorldPos = __instance.transform.TransformPoint(__instance._localSensorOffset);
|
var sensorWorldPos = __instance.transform.TransformPoint(__instance._localSensorOffset);
|
||||||
var sensorWorldDir = Vector3.zero;
|
var sensorWorldDir = Vector3.zero;
|
||||||
@ -272,7 +272,6 @@ internal class LightSensorPatches : QSBPatch
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user