Skip to content

Commit 054857a

Browse files
committed
Fixed spam logs
1 parent 6dc7832 commit 054857a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NewMod/NewMod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public static class SetTaskTextPatch
170170
{
171171
public static void Postfix(TaskPanelBehaviour __instance, [HarmonyArgument(0)] string str)
172172
{
173-
if (PlayerControl.LocalPlayer.Data.IsDead)
173+
if (__instance.taskText != null && PlayerControl.LocalPlayer.Data.IsDead)
174174
{
175175
__instance.taskText.text += "\n" + (OptionGroupSingleton<GeneralOption>.Instance.AllowCams ? "<color=blue>Press F2 For Open Cams</color>" : "<color=red>You cannot open cams because the host has disabled this setting</color>");
176176
}

0 commit comments

Comments
 (0)