diff --git a/terrain/voxel_lod_terrain.h b/terrain/voxel_lod_terrain.h index 11a5790c..e0b3ca46 100644 --- a/terrain/voxel_lod_terrain.h +++ b/terrain/voxel_lod_terrain.h @@ -104,8 +104,8 @@ public: data_lod0.map.write_box( voxel_box, channel, action, [&generator](VoxelBufferInternal &voxels, Vector3i pos) { if (generator.is_valid()) { - VoxelBlockRequest r{ voxels, pos, 0 }; - generator->generate_block(r); + VoxelGenerator::VoxelQueryData q{ voxels, pos, 0 }; + generator->generate_block(q); } }); } @@ -126,8 +126,8 @@ public: data_lod0.map.write_box_2( voxel_box, channel1, channel2, action, [&generator](VoxelBufferInternal &voxels, Vector3i pos) { if (generator.is_valid()) { - VoxelBlockRequest r{ voxels, pos, 0 }; - generator->generate_block(r); + VoxelGenerator::VoxelQueryData q{ voxels, pos, 0 }; + generator->generate_block(q); } }); }