Files
MMOKitchen/Patches/PhotonNetworkServicePatch.cs
T

16 lines
455 B
C#
Raw Normal View History

2026-05-13 18:10:36 +10:00
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;
}
}
}