Skip to content

Commit 6a7b6d2

Browse files
committed
moar fix
1 parent efac8fe commit 6a7b6d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Patches/HUDManager_Patches.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal class HUDManager_Patches
99
{
1010
private static void Postfix(HUDManager __instance)
1111
{
12-
if (GameNetworkManager.Instance.localPlayerController.hasBegunSpectating)
12+
if (GameNetworkManager.Instance.localPlayerController != null && GameNetworkManager.Instance.localPlayerController.hasBegunSpectating)
1313
{
1414
if (StartOfRound.Instance.shipIsLeaving)
1515
{

SpectateEnemies.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ public void ToggleSpectatingMode(PlayerControllerB __instance)
185185
else
186186
{
187187
__instance.spectatedPlayerScript = __instance.playersManager.allPlayerScripts.FirstOrDefault(x => !x.isPlayerDead);
188+
HUDManager.Instance.spectatingPlayerText.text = "(Spectating: " + __instance.spectatedPlayerScript.playerUsername + ")";
188189
}
189190
}
190191

0 commit comments

Comments
 (0)