aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-02 16:41:40 -0500
committermat <git@matdoes.dev>2023-10-02 16:41:40 -0500
commitc3d27487cae6af5d593193b922d1e81e93a1c45d (patch)
tree022b13cf7e2d32ec9a132206001602236905513c /codegen/lib/code
parent994bac2c13f11aa212798b44816310c661af4a0d (diff)
downloadazalea-drasl-c3d27487cae6af5d593193b922d1e81e93a1c45d.tar.xz
start optimizing pathfinder
Diffstat (limited to 'codegen/lib/code')
-rwxr-xr-xcodegen/lib/code/shapes.py2
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:]: