Skip to content

Commit

Permalink
Specifies the connecting player in the RPC call to 'RPCA_OpenDoor' wh…
Browse files Browse the repository at this point in the history
…ich prevents already connected players from receiving the call and re-opening the door.
  • Loading branch information
wwwDayDream committed Apr 6, 2024
1 parent f5f433d commit e6ad24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Virality/Patches/PlayerHandlerPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private static void AddPlayerPostfix(Player player)
return;

Virality.Logger?.LogDebug("Running open door RPC.");
SurfaceNetworkHandler.Instance.m_View.RPC("RPCA_OpenDoor", RpcTarget.OthersBuffered);
SurfaceNetworkHandler.Instance.m_View.RPC("RPCA_OpenDoor", player.refs.view.Controller);

if (PhotonNetwork.IsMasterClient)
CurrentObjectiveTracker.SendCurrentObjective();
Expand Down

0 comments on commit e6ad24d

Please sign in to comment.