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:
parent
1fe8953da7
commit
2e1e607aa7
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue