mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 00:32:43 +00:00
no more hack needed yay!
This commit is contained in:
parent
9585327512
commit
2253210489
@ -1,5 +1,5 @@
|
|||||||
using EpicTransport;
|
using EpicTransport;
|
||||||
using Mirror;
|
using OWML.Common;
|
||||||
using QSB.Localization;
|
using QSB.Localization;
|
||||||
using QSB.Messaging;
|
using QSB.Messaging;
|
||||||
using QSB.Player.TransformSync;
|
using QSB.Player.TransformSync;
|
||||||
@ -115,7 +115,7 @@ internal class MenuManager : MonoBehaviour, IAddComponentOnStart
|
|||||||
{
|
{
|
||||||
if (QSBSceneManager.CurrentScene != OWScene.TitleScreen)
|
if (QSBSceneManager.CurrentScene != OWScene.TitleScreen)
|
||||||
{
|
{
|
||||||
DebugLog.ToConsole("Error - Language changed while not in title screen?! Should be impossible!", OWML.Common.MessageType.Error);
|
DebugLog.ToConsole("Error - Language changed while not in title screen?! Should be impossible!", MessageType.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -434,7 +434,7 @@ internal class MenuManager : MonoBehaviour, IAddComponentOnStart
|
|||||||
{
|
{
|
||||||
if (button == null)
|
if (button == null)
|
||||||
{
|
{
|
||||||
DebugLog.DebugWrite($"Warning - Tried to set button to {active}, but it was null.", OWML.Common.MessageType.Warning);
|
DebugLog.DebugWrite($"Warning - Tried to set button to {active}, but it was null.", MessageType.Warning);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -688,8 +688,6 @@ internal class MenuManager : MonoBehaviour, IAddComponentOnStart
|
|||||||
Locator.GetMenuInputModule().DisableInputs();
|
Locator.GetMenuInputModule().DisableInputs();
|
||||||
|
|
||||||
QSBNetworkManager.singleton.networkAddress = address;
|
QSBNetworkManager.singleton.networkAddress = address;
|
||||||
// hack to get disconnect call if start client fails immediately (happens on kcp transport when failing to resolve host name)
|
|
||||||
typeof(NetworkClient).GetProperty(nameof(NetworkClient.connection))!.SetValue(null, new NetworkConnectionToServer());
|
|
||||||
QSBNetworkManager.singleton.StartClient();
|
QSBNetworkManager.singleton.StartClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user