fix unloadng of temp terrain
This commit is contained in:
+3
-4
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user