Fix a missing .entity() -> .target() conversion in observers example (#17363)

See title :)
This commit is contained in:
Matty Weatherley 2025-01-14 16:52:24 -05:00 committed by GitHub
parent eec5915da8
commit ec611976ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,7 @@ fn on_remove_mine(
}
fn explode_mine(trigger: Trigger<Explode>, query: Query<&Mine>, mut commands: Commands) {
// If a triggered event is targeting a specific entity you can access it with `.entity()`
// If a triggered event is targeting a specific entity you can access it with `.target()`
let id = trigger.target();
let Some(mut entity) = commands.get_entity(id) else {
return;