mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
update patches with Patch 14 code
This commit is contained in:
parent
861962feb5
commit
ee2d33f081
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user