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.
This commit is contained in:
ShadowCommander 2024-04-29 17:19:07 -07:00 committed by GitHub
parent 4b39c358c8
commit dfa365f701
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<T>. TODO: replace with Entity<T> syntax once that's possible
{
if (component.Storage != args.Container)
return;
UpdateUserInterfaceState(uid, component);
}