diff options
| author | mat <git@matdoes.dev> | 2023-10-02 16:41:40 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-02 16:41:40 -0500 |
| commit | c3d27487cae6af5d593193b922d1e81e93a1c45d (patch) | |
| tree | 022b13cf7e2d32ec9a132206001602236905513c /codegen/lib | |
| parent | 994bac2c13f11aa212798b44816310c661af4a0d (diff) | |
| download | azalea-drasl-c3d27487cae6af5d593193b922d1e81e93a1c45d.tar.xz | |
start optimizing pathfinder
Diffstat (limited to 'codegen/lib')
| -rwxr-xr-x | codegen/lib/code/shapes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/lib/code/shapes.py b/codegen/lib/code/shapes.py index 18f2ccbd..f270fd7f 100755 --- a/codegen/lib/code/shapes.py +++ b/codegen/lib/code/shapes.py @@ -148,7 +148,7 @@ def generate_code_for_shape(shape_id: str, parts: list[list[float]]): code += f'static SHAPE{shape_id}: Lazy<VoxelShape> = Lazy::new(|| {{' steps = [] if parts == (): - steps.append('collision::empty_shape()') + steps.append('collision::EMPTY_SHAPE.clone()') else: steps.append(f'collision::box_shape({make_arguments(parts[0])})') for part in parts[1:]: |
