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 null
parent 1fe8953da7
commit 2e1e607aa7
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
1 changed files with 3 additions and 0 deletions

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);
}