chore: port to new command system
This commit is contained in:
1 parent
544bfc21d5
commit
e393751b8d
142 files changed
+12190
-13274
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user