Skip to content

Commit

Permalink
Change whitelist to pass when null (space-wizards#29981)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowCommander authored and Baa14453 committed Oct 19, 2024
1 parent 9e62ad5 commit 4d64048
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ private bool TryGetLayers(EntityUid uid,
var list = new List<string>();
foreach (var mapLayerData in itemMapper.MapLayers.Values)
{
var count = containedLayers.Count(ent => _whitelistSystem.IsWhitelistPass(mapLayerData.Whitelist, ent));
var count = containedLayers.Count(ent => _whitelistSystem.IsWhitelistPassOrNull(mapLayerData.Whitelist,
ent));
if (count >= mapLayerData.MinCount && count <= mapLayerData.MaxCount)
{
list.Add(mapLayerData.Layer);
Expand Down

0 comments on commit 4d64048

Please sign in to comment.