diff options
Diffstat (limited to 'codegen/lib')
| -rw-r--r-- | codegen/lib/code/entity.py | 2 | ||||
| -rwxr-xr-x | codegen/lib/code/utils.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/codegen/lib/code/entity.py b/codegen/lib/code/entity.py index 45210b5e..7be6b01d 100644 --- a/codegen/lib/code/entity.py +++ b/codegen/lib/code/entity.py @@ -105,7 +105,7 @@ use super::{ SnifferState, VillagerData }; use azalea_chat::FormattedText; -use azalea_core::{particle::Particle, BlockPos, Direction, Vec3}; +use azalea_core::{particle::Particle, position::{BlockPos, Vec3}, direction::Direction}; use azalea_inventory::ItemSlot; use bevy_ecs::{bundle::Bundle, component::Component}; use derive_more::{Deref, DerefMut}; 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') |
