fix unloadng of temp terrain

This commit is contained in:
2025-05-02 20:53:04 +01:00
parent b7261ae847
commit 18756b2366
2 changed files with 15 additions and 5 deletions
+3 -4
View File
@@ -162,9 +162,8 @@ pub fn generate_surface_noise(x: i32, y: i32) -> f32 {
(noise_value * 2.5) as f32
}
fn handle_chunk_loading(
fn generate_chunks_from_algo(
mut commands: Commands,
textures: Res<Textures>,
mut events: EventReader<LoadChunkEvent>,
mut chunk_map: ResMut<ChunkMap>,
mut tilemap: ResMut<TileMap>,
@@ -306,12 +305,12 @@ impl Plugin for TilemapPlugin {
.add_systems(
PostStartup,
(
handle_chunk_loading,
generate_chunks_from_algo,
handle_tile_occlusion_updates,
tile::update_tile_visibility,
)
.chain(),
)
.add_systems(FixedUpdate, (handle_chunk_loading).chain());
.add_systems(FixedUpdate, (generate_chunks_from_algo).chain());
}
}