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:
@@ -89,7 +89,7 @@ public partial class SharedGunSystem
|
||||
|
||||
public bool TryRevolverInsert(EntityUid revolverUid, RevolverAmmoProviderComponent component, EntityUid uid, EntityUid? user)
|
||||
{
|
||||
if (component.Whitelist?.IsValid(uid, EntityManager) == false)
|
||||
if (_whitelistSystem.IsWhitelistFail(component.Whitelist, uid))
|
||||
return false;
|
||||
|
||||
// If it's a speedloader try to get ammo from it.
|
||||
|
||||
Reference in New Issue
Block a user