Fix masks not toggling voice mask component (#22506)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Content.Shared.Clothing;
|
||||
using Content.Server.Nutrition.Components;
|
||||
using Content.Shared.Clothing;
|
||||
|
||||
namespace Content.Server.Nutrition.EntitySystems;
|
||||
|
||||
@@ -8,10 +9,10 @@ public sealed class IngestionBlockerSystem : EntitySystem
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<Components.IngestionBlockerComponent, ItemMaskToggledEvent>(OnBlockerMaskToggled);
|
||||
SubscribeLocalEvent<IngestionBlockerComponent, ItemMaskToggledEvent>(OnBlockerMaskToggled);
|
||||
}
|
||||
|
||||
private void OnBlockerMaskToggled(Entity<Components.IngestionBlockerComponent> ent, ref ItemMaskToggledEvent args)
|
||||
private void OnBlockerMaskToggled(Entity<IngestionBlockerComponent> ent, ref ItemMaskToggledEvent args)
|
||||
{
|
||||
ent.Comp.Enabled = !args.IsToggled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user