// SPDX-FileCopyrightText: 2025 GoobBot // SPDX-FileCopyrightText: 2025 deltanedas <@deltanedas:kde.org> // // SPDX-License-Identifier: AGPL-3.0-or-later using Content.Server.Kitchen.Components; using Robust.Shared.Containers; namespace Content.Server._Goobstation.Kitchen; /// /// Prevents automation taking items out of an active microwave. /// Only exists because microwave supercode only prevents it in interaction, not attempt events. /// public sealed class MicrowaveEventsSystem : EntitySystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnRemoveAttempt); } private void OnRemoveAttempt(Entity ent, ref ContainerIsRemovingAttemptEvent args) { args.Cancel(); } }