mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-22 21:40:39 +00:00
do this
This commit is contained in:
parent
c235f78c50
commit
c9018766f5
@ -6,6 +6,7 @@ using QSB.Player;
|
|||||||
using QSB.Utility;
|
using QSB.Utility;
|
||||||
using QSB.WorldSync;
|
using QSB.WorldSync;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -98,6 +99,11 @@ internal class LightSensorPatches : QSBPatch
|
|||||||
}
|
}
|
||||||
var illuminated = __instance._illuminated;
|
var illuminated = __instance._illuminated;
|
||||||
var locallyIlluminated = qsbLightSensor._locallyIlluminated;
|
var locallyIlluminated = qsbLightSensor._locallyIlluminated;
|
||||||
|
if (__instance._illuminatingDreamLanternList != null)
|
||||||
|
{
|
||||||
|
_illuminatingDreamLanternList.Clear();
|
||||||
|
_illuminatingDreamLanternList.AddRange(__instance._illuminatingDreamLanternList);
|
||||||
|
}
|
||||||
__instance.UpdateIllumination();
|
__instance.UpdateIllumination();
|
||||||
if (qsbLightSensor.Owner == QSBPlayerManager.LocalPlayerId)
|
if (qsbLightSensor.Owner == QSBPlayerManager.LocalPlayerId)
|
||||||
{
|
{
|
||||||
@ -110,6 +116,11 @@ internal class LightSensorPatches : QSBPatch
|
|||||||
{
|
{
|
||||||
__instance.OnDetectDarkness.Invoke();
|
__instance.OnDetectDarkness.Invoke();
|
||||||
}
|
}
|
||||||
|
if (__instance._illuminatingDreamLanternList != null &&
|
||||||
|
!__instance._illuminatingDreamLanternList.SequenceEqual(_illuminatingDreamLanternList))
|
||||||
|
{
|
||||||
|
// todo send a message about it
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!locallyIlluminated && qsbLightSensor._locallyIlluminated)
|
if (!locallyIlluminated && qsbLightSensor._locallyIlluminated)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user