Added Photon Patch

This commit is contained in:
Lachlan Leone
2026-05-13 18:10:36 +10:00
parent ef34176935
commit f6eadacb5e
4 changed files with 23 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
# Release Notes v0.4.1
- Patched Photon's lobby creation to allow for more players. (Note this is untested) #1
+3
View File
@@ -0,0 +1,3 @@
[h1]Release Notes v0.4.1[/h1]
- Patched Photon's lobby creation to allow for more players. (Note this is untested) #1
+1 -1
View File
@@ -14,7 +14,7 @@ namespace MMOKitchen
{
public const string MOD_GUID = "com.starfluxgames.mmokitchen";
public const string MOD_NAME = "MMO Kitchen";
public const string MOD_VERSION = "0.4.0";
public const string MOD_VERSION = "0.4.1";
public const string MOD_AUTHOR = "StarFluxGames";
public const string MOD_GAMEVERSION = ">=1.2.0";
+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;
}
}
}