Skip to content

Commit

Permalink
Devourer ignore whitelist flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisfiregamer1 committed Oct 18, 2024
1 parent 981a8a0 commit a100571
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Content.Shared/Devour/SharedDevourSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,15 @@ protected void OnInit(EntityUid uid, DevourerComponent component, MapInitEvent a
/// </summary>
protected void OnDevourAction(EntityUid uid, DevourerComponent component, DevourActionEvent args)
{
if (args.Handled || component.Whitelist?.IsValid(args.Target, EntityManager) != true)
if (args.Handled)
return;

if (!component.IgnoreWhitelist)
{
if (component.Whitelist?.IsValid(args.Target, EntityManager) != true)
return;
}

args.Handled = true;
var target = args.Target;

Expand Down

0 comments on commit a100571

Please sign in to comment.