baba booey

This commit is contained in:
JohnCorby 2022-03-06 22:49:06 -08:00
parent 45396eb819
commit ebd3af69b8

View File

@ -70,7 +70,7 @@ internal class LightSensorPatches : QSBPatch
}
case LightSourceType.FLASHLIGHT:
{
if (source is Flashlight light && light == Locator.GetFlashlight())
if (Locator.GetFlashlight() == source as Flashlight)
{
var position = Locator.GetPlayerCamera().transform.position;
var to = __instance.transform.position - position;