Null protection in multiplayer manager detach
This commit is contained in:
@@ -69,6 +69,7 @@ namespace Torch.Managers
|
||||
/// <inheritdoc />
|
||||
public override void Detach()
|
||||
{
|
||||
if (MyMultiplayer.Static != null)
|
||||
MyMultiplayer.Static.ClientLeft -= OnClientLeft;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user