diff --git a/src/widgets/machines.rs b/src/widgets/machines.rs index 43a429c..50ad3ff 100644 --- a/src/widgets/machines.rs +++ b/src/widgets/machines.rs @@ -52,7 +52,7 @@ impl SpawnUi for RotatingMachine { fn spawn_ui(mut commands: Commands, theme: Res, machine_id: Entity) { let base_entity = machine_ui_base(&mut commands, "Rotating Machine", &theme); commands.entity(base_entity).with_children(|commands| { - commands.spawn(FuelGauge::bundle(Entity::PLACEHOLDER)); + commands.spawn(FuelGauge::bundle(machine_id)); // Center panel (placeholder for input-output rotation) commands.spawn(( @@ -87,7 +87,7 @@ impl SpawnUi for FlippingMachine { fn spawn_ui(mut commands: Commands, theme: Res, machine_id: Entity) { let base_entity = machine_ui_base(&mut commands, "Flipping Machine", &theme); commands.entity(base_entity).with_children(|commands| { - commands.spawn(FuelGauge::bundle(Entity::PLACEHOLDER)); + commands.spawn(FuelGauge::bundle(machine_id)); // Center panel (placeholder) commands.spawn(( @@ -122,7 +122,7 @@ impl SpawnUi for TransposingMachine { fn spawn_ui(mut commands: Commands, theme: Res, machine_id: Entity) { let base_entity = machine_ui_base(&mut commands, "Transposing Machine", &theme); commands.entity(base_entity).with_children(|commands| { - commands.spawn(FuelGauge::bundle(Entity::PLACEHOLDER)); + commands.spawn(FuelGauge::bundle(machine_id)); // Center panel (placeholder) commands.spawn((