save
All checks were successful
Rust Checks / checks (push) Successful in 1m15s
Rust Checks / checks (pull_request) Successful in 1m11s

This commit is contained in:
CoCo_Sol 2024-02-21 17:57:43 +01:00
parent 4b1f7008fd
commit 9e9eec3914

View file

@ -85,9 +85,9 @@ fn get_type(position: Vec2, noise: &Perlin) -> Tile {
fn delete_map(
mut commands: Commands,
query: Query<Entity, With<Tile>>,
mut event: EventReader<StartMapGeneration>,
mut start_generation_events: EventReader<StartMapGeneration>,
) {
for _ in event.read() {
for _ in start_generation_events.read() {
for entity in query.iter() {
commands.entity(entity).despawn_recursive();
}