mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-27 23:44:35 +00:00
fix issue with example mod
This commit is contained in:
1 parent
2f7b0692f3
commit
faed84d0f6
2 files changed
+4
-3
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user