diff --git a/Changelogs/Github/v0.4.1.MD b/Changelogs/Github/v0.4.1.MD new file mode 100644 index 0000000..ecc2647 --- /dev/null +++ b/Changelogs/Github/v0.4.1.MD @@ -0,0 +1,3 @@ +# Release Notes v0.4.1 + +- Patched Photon's lobby creation to allow for more players. (Note this is untested) #1 \ No newline at end of file diff --git a/Changelogs/Workshop/v0.4.1.MD b/Changelogs/Workshop/v0.4.1.MD new file mode 100644 index 0000000..21b93e6 --- /dev/null +++ b/Changelogs/Workshop/v0.4.1.MD @@ -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 \ No newline at end of file diff --git a/Mod.cs b/Mod.cs index 04ab24c..26a56da 100644 --- a/Mod.cs +++ b/Mod.cs @@ -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"; diff --git a/Patches/PhotonNetworkServicePatch.cs b/Patches/PhotonNetworkServicePatch.cs new file mode 100644 index 0000000..df5dcaa --- /dev/null +++ b/Patches/PhotonNetworkServicePatch.cs @@ -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; + } + } +} \ No newline at end of file