aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/shapes.py
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-14 19:12:20 -0930
committermat <git@matdoes.dev>2025-12-14 19:12:20 -0930
commitde48bfc94ea4e62a8d5702d456aa4e82ced3890c (patch)
tree3b9e28a0a0562077b85e12d90c3c7e060bfe92f8 /codegen/lib/code/shapes.py
parentaab9f56da20a36347fe31557377e07a47c114dc6 (diff)
downloadazalea-drasl-de48bfc94ea4e62a8d5702d456aa4e82ced3890c.tar.xz
create typos.toml and fix typos
Diffstat (limited to 'codegen/lib/code/shapes.py')
-rw-r--r--codegen/lib/code/shapes.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/codegen/lib/code/shapes.py b/codegen/lib/code/shapes.py
index f3a5d513..59b0cb98 100644
--- a/codegen/lib/code/shapes.py
+++ b/codegen/lib/code/shapes.py
@@ -3,8 +3,8 @@ from lib.utils import get_dir_location
COLLISION_BLOCKS_RS_DIR = get_dir_location("../azalea-physics/src/collision/blocks.rs")
-def generate_block_shapes(pumpkin_block_datas: dict, block_states_report):
- blocks, shapes = simplify_shapes(pumpkin_block_datas)
+def generate_block_shapes(pumpkin_blocks_data: dict, block_states_report):
+ blocks, shapes = simplify_shapes(pumpkin_blocks_data)
code = generate_block_shapes_code(blocks, shapes, block_states_report)
with open(COLLISION_BLOCKS_RS_DIR, "w") as f:
@@ -79,9 +79,9 @@ def generate_block_shapes_code(blocks: dict, shapes: dict, block_states_report):
collision_shapes_map = []
outline_shapes_map = []
- for block_id, shape_datas in blocks.items():
- collision_shapes = shape_datas["collision"]
- outline_shapes = shape_datas["outline"]
+ for block_id, shapes_data in blocks.items():
+ collision_shapes = shapes_data["collision"]
+ outline_shapes = shapes_data["outline"]
if isinstance(collision_shapes, int):
collision_shapes = [collision_shapes]