Added Photon Patch
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# Release Notes v0.4.1
|
||||
|
||||
- Patched Photon's lobby creation to allow for more players. (Note this is untested) #1
|
||||
@@ -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
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user