Skip to content
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.

Commit

Permalink
update to ptb 23
Browse files Browse the repository at this point in the history
  • Loading branch information
GrafDimenzio committed Jul 20, 2020
1 parent 3dad45e commit 5294f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Synapse/Events/Patches/DoorInteractPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public static bool Prefix(PlayerInteract __instance, GameObject doorId)
if (!__instance._playerInteractRateLimit.CanExecute() ||
(__instance._hc.CufferId > 0 && !PlayerInteract.CanDisarmedInteract) || doorId == null ||
__instance._ccm.CurClass == RoleType.None || __instance._ccm.CurClass == RoleType.Spectator ||
!doorId.TryGetComponent(out door) || !((door.buttons.Count == 0)
!doorId.TryGetComponent(out door) || !((door.Buttons.Count == 0)
? __instance.ChckDis(doorId.transform.position)
: door.buttons.Any(item => __instance.ChckDis(item.transform.position)))) return false;
: door.Buttons.Any(item => __instance.ChckDis(item.button.transform.position)))) return false;

__instance.OnInteract();

Expand Down

0 comments on commit 5294f0a

Please sign in to comment.