fix: disjoint Transform queries in update_tractor_beam_visual
Add Without<TractorBeamSprite> filter to boss_query so Bevy's parallel access checker can prove the &Transform read on bosses and the &mut Transform write on beam-sprite children target disjoint entity sets. Without it, the system panicked on first run with a B0001 "conflicts with a previous system parameter" error.
This commit is contained in:
parent
35300ec62b
commit
506a775b0c
1 changed files with 1 additions and 1 deletions
|
|
@ -660,7 +660,7 @@ pub fn boss_capture_attack(
|
|||
/// Update tractor beam visual: pulse opacity and update beam height.
|
||||
pub fn update_tractor_beam_visual(
|
||||
time: Res<Time>,
|
||||
boss_query: Query<(Entity, &Transform, &TractorBeam)>,
|
||||
boss_query: Query<(Entity, &Transform, &TractorBeam), Without<TractorBeamSprite>>,
|
||||
mut sprite_query: Query<(&mut Sprite, &mut Transform), With<TractorBeamSprite>>,
|
||||
children: Query<&Children>,
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue