File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments