Replace obsolete EntityWhitelist IsValid usages (#28465)
* Replace obsolete whitelist is valid with whitelist system * Consistency * Fix logic * Bork * I figured out how to get whitelists on the client lol * test fail * woops * HELP ME FUNCTIONS * Fix errors * simplify --------- Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
@@ -20,6 +20,7 @@ public abstract class SharedImplanterSystem : EntitySystem
|
||||
[Dependency] private readonly ItemSlotsSystem _itemSlots = default!;
|
||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||
[Dependency] private readonly SharedPopupSystem _popup = default!;
|
||||
[Dependency] private readonly EntityWhitelistSystem _whitelistSystem = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -105,8 +106,8 @@ public abstract class SharedImplanterSystem : EntitySystem
|
||||
|
||||
protected bool CheckTarget(EntityUid target, EntityWhitelist? whitelist, EntityWhitelist? blacklist)
|
||||
{
|
||||
return whitelist?.IsValid(target, EntityManager) != false &&
|
||||
blacklist?.IsValid(target, EntityManager) != true;
|
||||
return _whitelistSystem.IsWhitelistPassOrNull(whitelist, target) &&
|
||||
_whitelistSystem.IsBlacklistFailOrNull(blacklist, target);
|
||||
}
|
||||
|
||||
//Draw the implant out of the target
|
||||
|
||||
Reference in New Issue
Block a user