update patches with Patch 14 code

This commit is contained in:
_nebula 2023-11-13 22:26:44 +00:00
parent 861962feb5
commit ee2d33f081
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ public class QuantumObjectPatches : QSBPatch
public static bool IsLockedByPlayerContact(out bool __result, QuantumObject __instance)
{
var playersEntangled = QuantumManager.GetEntangledPlayers(__instance);
__result = playersEntangled.Count() != 0 && __instance.IsIlluminated();
__result = playersEntangled.Count() != 0 && (__instance.IsIlluminated() || playersEntangled.Any(x => x.FlashlightActive));
return false;
}

View File

@ -94,7 +94,7 @@ public class QSBNomaiTranslator : QSBTool
if (_currentNomaiText is NomaiWallText nomaiWallText)
{
var nomaiTextLine = nomaiWallText.GetClosestTextLineByCenter(raycastHit.point);
if (_lastLineLocked)
if (_lastLineLocked && _lastHighlightedTextLine != null)
{
var distToCenter = _lastHighlightedTextLine.GetDistToCenter(raycastHit.point);
if (distToCenter > _lastLineDist + 0.1f)