Skip to content

Commit

Permalink
fix: allow empty overrides to skip checks (#357)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Wilson <[email protected]>
  • Loading branch information
busheezy and roflmuffin authored Mar 4, 2024
1 parent daf0d25 commit fbcdce3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ private void HandleCommandInternal(int playerSlot, IntPtr commandInfo)

foreach (var attr in permissionsToCheck)
{
if (attr.Permissions.Count == 0)
{
continue;
}

attr.Command = name;
if (!attr.CanExecuteCommand(caller))
{
Expand Down

0 comments on commit fbcdce3

Please sign in to comment.