mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 09:39:56 +00:00
Add stacktrace print to LocalPlayerId
This commit is contained in:
parent
51e0c90864
commit
5d50fd3ca1
@ -20,7 +20,9 @@ namespace QSB.Player
|
||||
var localInstance = PlayerTransformSync.LocalInstance;
|
||||
if (localInstance == null)
|
||||
{
|
||||
DebugLog.ToConsole($"Error - Trying to get LocalPlayerId when the local PlayerTransformSync instance is null.", MessageType.Error);
|
||||
var method = new StackTrace().GetFrame(1).GetMethod();
|
||||
DebugLog.ToConsole($"Error - Trying to get LocalPlayerId when the local PlayerTransformSync instance is null." +
|
||||
$"{Environment.NewLine} Called from {method.DeclaringType.Name}.{method.Name} ", MessageType.Error);
|
||||
return uint.MaxValue;
|
||||
}
|
||||
if (localInstance.NetIdentity == null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user