From be9cb3fe69e97ec7fdb4053be970e34dba044b8c Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sat, 30 Aug 2025 09:23:59 -0500 Subject: [PATCH] Fix: pass the machine ID through, not PLACEHOLDER Oops. Yay for rushed work. --- src/widgets/machines.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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((