mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
Merge branch 'dev' into vendor-compatibility
This commit is contained in:
commit
9244408236
@ -318,6 +318,8 @@ namespace QSB.Menus
|
||||
SetButtonActive(HostButton, false);
|
||||
SetButtonActive(QuitButton, false);
|
||||
|
||||
QSBNetworkManager.singleton.StartHost();
|
||||
|
||||
var text = QSBCore.IsHost
|
||||
? StopHostingString
|
||||
: DisconnectString;
|
||||
@ -340,8 +342,6 @@ namespace QSB.Menus
|
||||
, "YES"
|
||||
, "NO");
|
||||
}
|
||||
|
||||
QSBNetworkManager.singleton.StartHost();
|
||||
}
|
||||
|
||||
private void Connect()
|
||||
|
@ -33,9 +33,9 @@ namespace QSB.Utility
|
||||
|
||||
public static uint GetPlayerId(this NetworkConnection conn)
|
||||
{
|
||||
if (conn == null)
|
||||
if (!conn.identity)
|
||||
{
|
||||
DebugLog.ToConsole("Warning - GetPlayerId with null NetworkConnection", MessageType.Warning);
|
||||
DebugLog.ToConsole($"Error - GetPlayerId on {conn.address} has no identity", MessageType.Error);
|
||||
return uint.MaxValue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user