mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
fix: ci
This commit is contained in:
@@ -28,6 +28,7 @@ pub fn generate_single_chunk(
|
||||
)
|
||||
}
|
||||
|
||||
#[expect(clippy::too_many_arguments)]
|
||||
pub fn generate_single_chunk_with_radius(
|
||||
_dimension: &Dimension,
|
||||
_biome_mixer_seed: i64,
|
||||
|
||||
@@ -1319,11 +1319,8 @@ impl ProtoChunk {
|
||||
) -> bool {
|
||||
let chunk_x = self.x;
|
||||
let chunk_z = self.z;
|
||||
let position = global_cache.get_or_compute_structure_start(
|
||||
entry.structure,
|
||||
chunk_x,
|
||||
chunk_z,
|
||||
|| {
|
||||
let position =
|
||||
global_cache.get_or_compute_structure_start(entry.structure, chunk_x, chunk_z, || {
|
||||
let structure = Structure::get(&entry.structure);
|
||||
try_generate_structure(
|
||||
&entry.structure,
|
||||
@@ -1333,8 +1330,7 @@ impl ProtoChunk {
|
||||
sea_level,
|
||||
Some(height_sampler),
|
||||
)
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
if let Some(pos) = position {
|
||||
self.structure_starts
|
||||
|
||||
@@ -159,7 +159,7 @@ mod test {
|
||||
test_name: &str,
|
||||
) {
|
||||
let seed = Seed(seed);
|
||||
let world_gen = get_world_gen(seed, dimension.clone(), false, Vec::new(), String::new());
|
||||
let world_gen = get_world_gen(seed, dimension, false, Vec::new(), String::new());
|
||||
let mut chunk = ProtoChunk::new(chunk_x, chunk_z, &world_gen);
|
||||
let WorldGenerator::Noise(generator) = &*world_gen else {
|
||||
unreachable!()
|
||||
|
||||
Reference in New Issue
Block a user