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