Added Photon Patch

This commit is contained in:
Lachlan Leone committed 2026-05-13 18:10:36 +10:00
1 parent ef34176935
commit f6eadacb5e
4 files changed
+23 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
using HarmonyLib;
using Photon.Realtime;
namespace MMOKitchen.Patches
{
[HarmonyPatch(typeof(LoadBalancingClient), "OpCreateRoom")]
public class PhotonNetworkServicePatch
{
static void Prefix(EnterRoomParams enterRoomParams)
{
if (enterRoomParams == null) return;
if (enterRoomParams.RoomOptions == null) return;
enterRoomParams.RoomOptions.MaxPlayers = Mod.MaxPlayers;
}
}
}