Skip to content

Commit

Permalink
hotfix: add Priority.Last just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
sirskunkalot committed Oct 28, 2022
1 parent 3998cce commit 070fdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JotunnLib/Managers/SynchronizationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private static class Patches
private static void ZNet_RPC_Post_PeerInfo(ZNet __instance, ZRpc rpc, ref PeerInfoBlockingSocket __state) => Instance.ZNet_RPC_Post_PeerInfo(__instance, rpc, ref __state);

// Hook PlayFab socket to disable compression as a hotfix for connection issues
[HarmonyPatch(typeof(ZPlayFabSocket), nameof(ZPlayFabSocket.VersionMatch)), HarmonyPostfix]
[HarmonyPatch(typeof(ZPlayFabSocket), nameof(ZPlayFabSocket.VersionMatch)), HarmonyPostfix, HarmonyPriority(priority: Priority.Last)]
private static void ZPlayFabSocket_VersionMatch(ZPlayFabSocket __instance) => Instance.ZPlayFabSocket_VersionMatch(__instance);

// Hook SyncedList for admin list changes
Expand Down

0 comments on commit 070fdfa

Please sign in to comment.