Skip to content

Commit

Permalink
Check if player is local
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWasUnavailable committed Apr 10, 2024
1 parent 1e314cd commit 9f6358a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Virality/Patches/PlayerHandlerPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ private static void AddPlayerPostfixOpenDoor(Player player)

if (!PhotonLobbyHelper.IsMasterClient())
return;

if (player.IsLocal)
return;

SendDoorOpenRPC(player);
}
Expand Down

0 comments on commit 9f6358a

Please sign in to comment.