aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/utils.py
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-01 15:19:13 -0500
committermat <git@matdoes.dev>2023-10-01 15:19:13 -0500
commitbefa33a87950b6d0f3364cb4fe603f6d84bf4b8f (patch)
treeb46f2b76d4f7c66aef05759d33de68d88904c45b /codegen/lib/code/utils.py
parent33e823d6fab990efaa735c05e4b0c42636003b76 (diff)
downloadazalea-drasl-befa33a87950b6d0f3364cb4fe603f6d84bf4b8f.tar.xz
organize azalea_core and re-export it from azalea
Diffstat (limited to 'codegen/lib/code/utils.py')
-rwxr-xr-xcodegen/lib/code/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/codegen/lib/code/utils.py b/codegen/lib/code/utils.py
index 6dd910dc..0050ce7b 100755
--- a/codegen/lib/code/utils.py
+++ b/codegen/lib/code/utils.py
@@ -48,18 +48,18 @@ def burger_type_to_rust_type(burger_type, field_name: Optional[str] = None, inst
uses.add('azalea_chat::FormattedText')
elif burger_type == 'identifier':
field_type_rs = 'ResourceLocation'
- uses.add('azalea_core::ResourceLocation')
+ uses.add('azalea_core::resource_location::ResourceLocation')
elif burger_type == 'uuid':
field_type_rs = 'Uuid'
uses.add('uuid::Uuid')
elif burger_type == 'position':
field_type_rs = 'BlockPos'
- uses.add('azalea_core::BlockPos')
+ uses.add('azalea_core::position::BlockPos')
elif burger_type == 'nbtcompound':
field_type_rs = 'azalea_nbt::Nbt'
elif burger_type == 'itemstack':
field_type_rs = 'Slot'
- uses.add('azalea_core::Slot')
+ uses.add('azalea_core::slot::Slot')
elif burger_type == 'metadata':
field_type_rs = 'EntityMetadata'
uses.add('azalea_entity::EntityMetadata')