fix issue with example mod

This commit is contained in:
XtraCube committed 2024-09-13 22:00:45 -04:00
1 parent 2f7b0692f3
commit faed84d0f6
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ public class MeetingButton : CustomActionButton
public override bool Enabled(RoleBehaviour? role)
{
return PlayerControl.LocalPlayer.HasModifier<CaptainModifier>();
return PlayerControl.LocalPlayer != null && PlayerControl.LocalPlayer.HasModifier<CaptainModifier>();
}
protected override void OnClick()