diff options
Diffstat (limited to 'codegen')
| -rwxr-xr-x | codegen/lib/code/shapes.py | 3 | ||||
| -rw-r--r-- | codegen/lib/code/tags.py | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/codegen/lib/code/shapes.py b/codegen/lib/code/shapes.py index c4964fa6..a7dd58fb 100755 --- a/codegen/lib/code/shapes.py +++ b/codegen/lib/code/shapes.py @@ -119,10 +119,11 @@ def generate_block_shapes_code(blocks: dict, shapes: dict, block_states_report): #![allow(clippy::explicit_auto_deref)] #![allow(clippy::redundant_closure)] +use std::sync::LazyLock; + use super::VoxelShape; use crate::collision::{{self, Shapes}}; use azalea_block::*; -use std::sync::LazyLock; pub trait BlockWithShape {{ fn shape(&self) -> &'static VoxelShape; diff --git a/codegen/lib/code/tags.py b/codegen/lib/code/tags.py index d43b0071..51b41f50 100644 --- a/codegen/lib/code/tags.py +++ b/codegen/lib/code/tags.py @@ -8,8 +8,8 @@ def generate_tags(registries: dict, file_name: str, struct_name: str): generated = f'''// This file was generated by codegen/lib/code/tags.py, don't edit it manually! -use std::collections::HashSet; -use std::sync::LazyLock; +use std::{collections::HashSet, sync::LazyLock}; + use crate::{struct_name}; |
