Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 authored Nov 24, 2024
1 parent 9a79075 commit 49c159d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Content.Shared/Whitelist/EntityWhitelistSystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq; // DeltaV
using Content.Shared.Item;
using Content.Shared.Roles;
using Content.Shared.Tag;
Expand Down Expand Up @@ -280,7 +281,20 @@ public bool IsWhitelistPass(EntityWhitelist? whitelist, EntityUid uid)
if (whitelist == null)
return false;

return IsValid(whitelist, uid);
// Begin DeltaV
var isValid = IsValid(whitelist, uid);
Log.Debug($"Whitelist validation result for entity {ToPrettyString(uid)}: {isValid}");

if (whitelist.RequireAll)
{
Log.Debug($"Whitelist requires all conditions - Components: {string.Join(", ", whitelist.Components ?? Array.Empty<string>())}, " +
$"Tags: {(whitelist.Tags != null ? string.Join(", ", whitelist.Tags.Select(t => t.ToString())) : "none")}");
}

return isValid;
// EndDeltaV

//return IsValid(whitelist, uid); // DeltaV
}

/// <summary>
Expand Down

0 comments on commit 49c159d

Please sign in to comment.