diff --git a/DevourClient/Hacks/Misc.cs b/DevourClient/Hacks/Misc.cs index f188b99..dc67d85 100644 --- a/DevourClient/Hacks/Misc.cs +++ b/DevourClient/Hacks/Misc.cs @@ -164,7 +164,7 @@ namespace DevourClient.Hacks catch { } } - public static void CreateCustomizedLobby(Il2CppUdpKit.Platform.Photon.PhotonRegion.Regions __region = Il2CppUdpKit.Platform.Photon.PhotonRegion.Regions.BEST_REGION, int lobbySize = 4) + public static void CreateCustomizedLobby(Il2CppUdpKit.Platform.Photon.PhotonRegion.Regions __region = Il2CppUdpKit.Platform.Photon.PhotonRegion.Regions.BEST_REGION, int lobbySize = 4, bool isPrivate = false) { Il2CppUdpKit.Platform.PhotonPlatformConfig __photonPlatformConfig = new Il2CppUdpKit.Platform.PhotonPlatformConfig(); @@ -173,7 +173,9 @@ namespace DevourClient.Hacks BoltLauncher.SetUdpPlatform(new Il2CppUdpKit.Platform.PhotonPlatform(__photonPlatformConfig)); BoltConfig __config = UnityEngine.Object.FindObjectOfType().boltConfig; + Toggle __toggle = UnityEngine.Object.FindObjectOfType().hostPrivateServer; + __toggle.isOn = isPrivate; __config.serverConnectionLimit = lobbySize; BoltLauncher.StartServer(__config, null);