aboutsummaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'codegen')
-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:]: