From f0907c07ff138b94a0172df523e50dd39c1a0d2a Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Mon, 6 Mar 2023 19:53:08 +0100 Subject: [PATCH] BEST_REGION is now by default instead of EU in CreateCustomizedLobby --- DevourClient/Hacks/Misc.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DevourClient/Hacks/Misc.cs b/DevourClient/Hacks/Misc.cs index c4bf4ce..f188b99 100644 --- a/DevourClient/Hacks/Misc.cs +++ b/DevourClient/Hacks/Misc.cs @@ -164,19 +164,19 @@ namespace DevourClient.Hacks catch { } } - public static void CreateCustomizedLobby(Il2CppUdpKit.Platform.Photon.PhotonRegion.Regions __region, int lobbySize = 4) + public static void CreateCustomizedLobby(Il2CppUdpKit.Platform.Photon.PhotonRegion.Regions __region = Il2CppUdpKit.Platform.Photon.PhotonRegion.Regions.BEST_REGION, int lobbySize = 4) { Il2CppUdpKit.Platform.PhotonPlatformConfig __photonPlatformConfig = new Il2CppUdpKit.Platform.PhotonPlatformConfig(); __photonPlatformConfig.Region = Il2CppUdpKit.Platform.Photon.PhotonRegion.regions[__region]; - BoltLauncher.SetUdpPlatform(new Il2CppUdpKit.Platform.PhotonPlatform(__photonPlatformConfig)); + BoltLauncher.SetUdpPlatform(new Il2CppUdpKit.Platform.PhotonPlatform(__photonPlatformConfig)); BoltConfig __config = UnityEngine.Object.FindObjectOfType().boltConfig; __config.serverConnectionLimit = lobbySize; - BoltLauncher.StartServer(__config, null); + BoltLauncher.StartServer(__config, null); } public static void SetSteamName(string name)