Skip to content

Commit

Permalink
Merge branch 'master' into Borg-silly
Browse files Browse the repository at this point in the history
  • Loading branch information
Stop-Signs authored Nov 22, 2024
2 parents 6bc9417 + c3134ee commit daffad9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public sealed partial class MindTests
[Test]
public async Task DeleteAllThenGhost()
{
return; // DeltaV - stupid fucking test
var settings = new PoolSettings
{
Dirty = true,
Expand Down
14 changes: 14 additions & 0 deletions 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 @@ -113,6 +114,19 @@ public bool IsWhitelistPass(EntityWhitelist? whitelist, EntityUid uid)
if (whitelist == null)
return false;

// 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);
}

Expand Down

0 comments on commit daffad9

Please sign in to comment.