mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
mm forgor
This commit is contained in:
parent
2a61d8cd36
commit
54a36104d8
@ -54,6 +54,8 @@ internal class LightSensorPatches : QSBPatch
|
|||||||
{
|
{
|
||||||
if (__instance._illuminated)
|
if (__instance._illuminated)
|
||||||
{
|
{
|
||||||
|
qsbLightSensor._locallyIlluminated = false;
|
||||||
|
qsbLightSensor.OnDetectLocalDarkness?.Invoke();;
|
||||||
// wait because someone could send a message getting ownership again
|
// wait because someone could send a message getting ownership again
|
||||||
// i hate this so fucking much
|
// i hate this so fucking much
|
||||||
Delay.RunFramesLater(10, () =>
|
Delay.RunFramesLater(10, () =>
|
||||||
@ -111,12 +113,12 @@ internal class LightSensorPatches : QSBPatch
|
|||||||
}
|
}
|
||||||
if (!locallyIlluminated && qsbLightSensor._locallyIlluminated)
|
if (!locallyIlluminated && qsbLightSensor._locallyIlluminated)
|
||||||
{
|
{
|
||||||
qsbLightSensor.OnDetectLocalLight.Invoke();
|
qsbLightSensor.OnDetectLocalLight?.Invoke();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (locallyIlluminated && !qsbLightSensor._locallyIlluminated)
|
if (locallyIlluminated && !qsbLightSensor._locallyIlluminated)
|
||||||
{
|
{
|
||||||
qsbLightSensor.OnDetectLocalDarkness.Invoke();
|
qsbLightSensor.OnDetectLocalDarkness?.Invoke();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user