File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -253,16 +253,16 @@ impl ChunkParams {
253253
254254 self . generate_terrain ( & mut voxels, & mut rng) ;
255255
256+ if let Some ( horosphere) = & self . horosphere {
257+ horosphere. generate ( & mut voxels, self . dimension ) ;
258+ }
259+
256260 if self . is_road {
257261 self . generate_road ( & mut voxels) ;
258262 } else if self . is_road_support {
259263 self . generate_road_support ( & mut voxels) ;
260264 }
261265
262- if let Some ( horosphere) = & self . horosphere {
263- horosphere. generate ( & mut voxels, self . dimension ) ;
264- }
265-
266266 // TODO: Don't generate detailed data for solid chunks with no neighboring voids
267267
268268 self . generate_trees ( & mut voxels, & mut rng) ;
@@ -293,7 +293,7 @@ impl ChunkParams {
293293 * voxels = VoxelData :: Solid ( Material :: Void ) ;
294294 return ;
295295 }
296- if center_elevation + ELEVATION_MARGIN < me_min / TERRAIN_SMOOTHNESS {
296+ if center_elevation + ELEVATION_MARGIN < me_min / TERRAIN_SMOOTHNESS && ! self . is_road {
297297 // The whole chunk is underground
298298 * voxels = VoxelData :: Solid ( Material :: Dirt ) ;
299299 return ;
You can’t perform that action at this time.
0 commit comments