From 94ff6936c6204dcd200b0049de165ab87901e33c Mon Sep 17 00:00:00 2001 From: Justin Turner Arthur Date: Fri, 4 Jul 2025 00:16:13 -0500 Subject: [PATCH] Fix patcher player limit match in ZPlayfabMatchmaking.CreateLobby. Look for 11 instead of 10 for server's own extra relay leg. --- Plugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin.cs b/Plugin.cs index 83ea3f8..2832b80 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -140,7 +140,7 @@ public static IEnumerable MaxPlayerPlayfabTranspiler(IEnumerabl { foreach (var instruction in instructions) { - if (instruction.opcode == OpCodes.Ldc_I4_S && (sbyte)instruction.operand == 10) + if (instruction.opcode == OpCodes.Ldc_I4_S && (sbyte)instruction.operand == 11) { #if DEBUG MaxPlayerCountLogger.LogDebug($"Playfab ZPlayfabMatchmaking.CreateLobby: Patching player limit {instruction.operand.ToString()} to {_maxPlayers.Value}");