diff --git a/Content.Shared/_Arc/Gilding/ObjectGildedSystem.cs b/Content.Shared/_Arc/Gilding/ObjectGildedSystem.cs index 428ea75a1b73e3..66c5433ecf1342 100644 --- a/Content.Shared/_Arc/Gilding/ObjectGildedSystem.cs +++ b/Content.Shared/_Arc/Gilding/ObjectGildedSystem.cs @@ -14,7 +14,6 @@ using Content.Shared.Stacks; using Robust.Shared.Network; using Content.Shared.Mind; -using Robust.Shared.Audio; namespace Content.Shared._Arc.Admemery { @@ -36,6 +35,8 @@ public sealed class ObjectGildedSystem : EntitySystem [Dependency] private readonly SharedAudioSystem _audioSystem = default!; + [Dependency] private readonly SharedMindSystem _mind = default!; + private ISawmill _sawmill = default!; public override void Initialize() @@ -121,7 +122,7 @@ private void PostMelt(EntityUid uid, ObjectGildedComponent component, GildedObje } - if (TryComp(uid, out var mindComponent)) + if (_mind.TryGetMind(uid, out var mindId, out var mind)) { SoundSpecifier noMoreSound = new SoundPathSpecifier("/Audio/_Arc/no_more.ogg");