Change whitelist logic for parcel wrap (#40800)

* init

* review
This commit is contained in:
ScarKy0
2025-10-09 15:00:13 +02:00
committed by GitHub
parent e3f6b00362
commit fea8ac4522
2 changed files with 12 additions and 2 deletions

View File

@@ -51,7 +51,6 @@ public sealed partial class ParcelWrappingSystem : EntitySystem
wrapper.Owner != target &&
// Wrapper should never be empty, but may as well make sure.
!_charges.IsEmpty(wrapper.Owner) &&
_whitelist.IsWhitelistPass(wrapper.Comp.Whitelist, target) &&
_whitelist.IsBlacklistFail(wrapper.Comp.Blacklist, target);
_whitelist.CheckBoth(target, wrapper.Comp.Blacklist, wrapper.Comp.Whitelist);
}
}