From 7f28ee6553a69a454d820257db43761f579efdc9 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sun, 24 Jul 2022 10:23:46 -0700 Subject: [PATCH] rename --- .../LightSensorSync/Patches/LightSensorPatches.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs b/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs index fb9651f8..3f451ffd 100644 --- a/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs +++ b/QSB/EchoesOfTheEye/LightSensorSync/Patches/LightSensorPatches.cs @@ -143,7 +143,7 @@ internal class LightSensorPatches : QSBPatch /// /// to prevent allocating a new list every frame /// - private static readonly List _prevIlluminatingDreamLanternList = new(); + private static readonly List _illuminatingDreamLanternList = new(); [HarmonyPrefix] [HarmonyPatch(nameof(SingleLightSensor.ManagedFixedUpdate))] @@ -165,8 +165,8 @@ internal class LightSensorPatches : QSBPatch if (__instance._illuminatingDreamLanternList != null) { - _prevIlluminatingDreamLanternList.Clear(); - _prevIlluminatingDreamLanternList.AddRange(__instance._illuminatingDreamLanternList); + _illuminatingDreamLanternList.Clear(); + _illuminatingDreamLanternList.AddRange(__instance._illuminatingDreamLanternList); } var illuminated = __instance._illuminated; @@ -215,7 +215,7 @@ internal class LightSensorPatches : QSBPatch } if (__instance._illuminatingDreamLanternList != null - && !__instance._illuminatingDreamLanternList.SequenceEqual(_prevIlluminatingDreamLanternList)) + && !__instance._illuminatingDreamLanternList.SequenceEqual(_illuminatingDreamLanternList)) { if (isPlayerLightSensor) {