Skip to content

Commit dc8f4bd

Browse files
committed
style: trim comments to single lines
1 parent 3a29f86 commit dc8f4bd

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

src/ore_generation.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ const ORES: &[OreDef] = &[
7373
},
7474
];
7575

76-
/// Place ore veins across every chunk in `xzbbox`. Y ranges are anchored to
77-
/// the chunk's local ground level so mountains carry ore inside their bulk
78-
/// instead of all veins collapsing to the lowest world layer.
76+
/// Place ore veins across every chunk; Y is relative to local ground.
7977
pub fn generate_ores(editor: &mut WorldEditor, xzbbox: &XZBBox) {
8078
println!("{} Sprinkling ore veins...", "[6b/7]".bold());
8179
emit_gui_progress_update(89.0, "Sprinkling ore veins...");
@@ -87,10 +85,7 @@ pub fn generate_ores(editor: &mut WorldEditor, xzbbox: &XZBBox) {
8785

8886
for chunk_x in min_chunk_x..=max_chunk_x {
8987
for chunk_z in min_chunk_z..=max_chunk_z {
90-
// One ground sample at chunk centre — cheap, and ore depth bands
91-
// smear over many blocks anyway so per-cell ground accuracy doesn't matter.
9288
let ground_y = editor.get_ground_level((chunk_x << 4) + 8, (chunk_z << 4) + 8);
93-
// Salt 0xC0DE so this RNG can't collide with tree-variant or biome RNGs.
9489
let mut rng = coord_rng(chunk_x, chunk_z, 0xC0DE);
9590

9691
for ore in ORES {

src/world_editor/common.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,8 @@ impl WorldToModify {
536536
}
537537
}
538538

539-
/// Fill empty (Uniform(AIR), no properties) sections of a chunk up to
540-
/// `section_y_max` with `Uniform(block)`. Returns true only if every section
541-
/// in the range was empty and got filled; false if any was already occupied
542-
/// (including sections that are already `Uniform(block)`).
539+
/// Fill empty (Uniform(AIR)) sections of a chunk up to `section_y_max` with
540+
/// `Uniform(block)`. Returns true only if every section in the range was empty.
543541
pub fn bulk_fill_chunk_sections_below(
544542
&mut self,
545543
chunk_x: i32,

0 commit comments

Comments
 (0)