Remove outdated access reader method. (#19765)
This commit is contained in:
@@ -192,7 +192,7 @@ public sealed class NetworkConfiguratorSystem : SharedNetworkConfiguratorSystem
|
||||
if (!TryComp(target, out AccessReaderComponent? reader) || user == null)
|
||||
return true;
|
||||
|
||||
if (_accessSystem.IsAllowed(user.Value, reader))
|
||||
if (_accessSystem.IsAllowed(user.Value, target, reader))
|
||||
return true;
|
||||
|
||||
_audioSystem.PlayPvs(component.SoundNoAccess, user.Value, AudioParams.Default.WithVolume(-2f).WithPitchScale(1.2f));
|
||||
|
||||
Reference in New Issue
Block a user