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:
@@ -41,7 +41,10 @@ public abstract partial class SharedGunSystem
|
||||
|
||||
private void OnBallisticInteractUsing(EntityUid uid, BallisticAmmoProviderComponent component, InteractUsingEvent args)
|
||||
{
|
||||
if (args.Handled || component.Whitelist?.IsValid(args.Used, EntityManager) != true)
|
||||
if (args.Handled)
|
||||
return;
|
||||
|
||||
if (_whitelistSystem.IsWhitelistFailOrNull(component.Whitelist, args.Used))
|
||||
return;
|
||||
|
||||
if (GetBallisticShots(component) >= component.Capacity)
|
||||
|
||||
Reference in New Issue
Block a user