chore: port to new command system

This commit is contained in:
Alexander Medvedev committed 2026-08-30 23:10:34 +02:00
1 parent 544bfc21d5
commit e393751b8d
142 files changed
+12190 -13274

No files matched your search

+5 -1
View File
@@ -64,7 +64,11 @@ fn setup_cache(
world_gen: &WorldGenerator,
block_registry: &dyn WorldPortalExt,
) -> Cache {
let radius = target_stage.get_direct_radius();
let radius = if target_stage as u8 >= StagedChunkEnum::Surface as u8 {
1
} else {
target_stage.get_direct_radius()
};
let mut cache = Cache::new(-radius, -radius, radius * 2 + 1);
for dx in -radius..=radius {