mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 18:32:45 +00:00
blank input field = use default server ip
This commit is contained in:
parent
78803d6c81
commit
616370fa24
@ -347,6 +347,10 @@ namespace QSB.Menus
|
||||
private void Connect()
|
||||
{
|
||||
var address = ((PopupInputMenu)IPPopup).GetInputText();
|
||||
if (address == string.Empty)
|
||||
{
|
||||
address = QSBCore.DefaultServerIP;
|
||||
}
|
||||
|
||||
if (QSBSceneManager.CurrentScene == OWScene.TitleScreen)
|
||||
{
|
||||
|
@ -44,7 +44,7 @@ namespace QSB
|
||||
{
|
||||
public static IModHelper Helper { get; private set; }
|
||||
public static IModUnityEvents UnityEvents => Helper.Events.Unity;
|
||||
public static string DefaultServerIP { get; private set; }
|
||||
public static string DefaultServerIP;
|
||||
public static bool UseKcpTransport => DebugSettings.UseKcpTransport;
|
||||
public static int OverrideAppId => DebugSettings.OverrideAppId;
|
||||
public static bool DebugMode => DebugSettings.DebugMode;
|
||||
|
@ -204,6 +204,7 @@ namespace QSB
|
||||
|
||||
public override void OnStartClient()
|
||||
{
|
||||
QSBCore.DefaultServerIP = networkAddress;
|
||||
var config = QSBCore.Helper.Config;
|
||||
config.SetSettingsValue("defaultServerIP", networkAddress);
|
||||
QSBCore.Helper.Storage.Save(config, Constants.ModConfigFileName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user