Skip to content

Commit

Permalink
-Changed Patch location for sending Ping
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagord committed Aug 19, 2022
1 parent ef38f39 commit d37ad9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PulsarModLoader/MPModChecks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ static bool Prefix(ref RoomInfo room)
return true;
}
}
[HarmonyPatch(typeof(PLServer), "OnPhotonPlayerConnected")]
[HarmonyPatch(typeof(PLServer), "AttemptGetVerified")]
class PrefixServerOnClientJoin
{
static void Prefix(PhotonPlayer connected)
static void Prefix(PhotonMessageInfo pmi)
{
if (PhotonNetwork.isMasterClient)
{
Logger.Info("Sending Ping (asking for mod list/Pong)");
ModMessageHelper.Instance.photonView.RPC("SendConnectionMessage", connected, new object[0]);
ModMessageHelper.Instance.photonView.RPC("SendConnectionMessage", pmi.sender, new object[0]);
}
}
}
Expand Down

0 comments on commit d37ad9c

Please sign in to comment.