From dfa365f7019c1ecf1a1703cfb80300a0cecb1690 Mon Sep 17 00:00:00 2001 From: ShadowCommander Date: Mon, 29 Apr 2024 17:19:07 -0700 Subject: [PATCH] Fix microwave construction (#27500) The microwave system would update UserInterface on any container changed instead of just the microwave_entity_container. This would cause it to error when trying to update the UI when ConstructionSystem inserted the circuit board and components. --- Content.Server/Kitchen/EntitySystems/MicrowaveSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Server/Kitchen/EntitySystems/MicrowaveSystem.cs b/Content.Server/Kitchen/EntitySystems/MicrowaveSystem.cs index fa5c5dad2a..8938aa8b1d 100644 --- a/Content.Server/Kitchen/EntitySystems/MicrowaveSystem.cs +++ b/Content.Server/Kitchen/EntitySystems/MicrowaveSystem.cs @@ -271,6 +271,9 @@ namespace Content.Server.Kitchen.EntitySystems private void OnContentUpdate(EntityUid uid, MicrowaveComponent component, ContainerModifiedMessage args) // For some reason ContainerModifiedMessage just can't be used at all with Entity. TODO: replace with Entity syntax once that's possible { + if (component.Storage != args.Container) + return; + UpdateUserInterfaceState(uid, component); } -- 2.52.0