Skip to content

Commit

Permalink
update patches with Patch 14 code
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Nov 13, 2023
1 parent 861962f commit ee2d33f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion QSB/QuantumSync/Patches/Common/QuantumObjectPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion QSB/Tools/TranslatorTool/QSBNomaiTranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public override void Update()
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)
Expand Down

0 comments on commit ee2d33f

Please sign in to comment.