mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
?
This commit is contained in:
parent
c6b18db281
commit
efca86eb15
@ -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