diff options
Diffstat (limited to 'azalea-client/src/test_utils')
| -rw-r--r-- | azalea-client/src/test_utils/simulation.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/azalea-client/src/test_utils/simulation.rs b/azalea-client/src/test_utils/simulation.rs index 0aeec3ea..1946fd6d 100644 --- a/azalea-client/src/test_utils/simulation.rs +++ b/azalea-client/src/test_utils/simulation.rs @@ -6,7 +6,6 @@ use azalea_buf::AzaleaWrite; use azalea_core::{ delta::LpVec3, game_type::{GameMode, OptionalGameType}, - identifier::Identifier, position::{BlockPos, ChunkPos, Vec3}, tick::GameTick, }; @@ -25,7 +24,12 @@ use azalea_protocol::{ }, }, }; -use azalea_registry::{Biome, DataRegistry, DimensionType, EntityKind}; +use azalea_registry::{ + DataRegistry, + builtin::EntityKind, + data::{Biome, DimensionKind}, + identifier::Identifier, +}; use azalea_world::{Chunk, Instance, MinecraftEntityId, Section, palette::PalettedContainer}; use bevy_app::App; use bevy_ecs::{ @@ -318,13 +322,13 @@ fn tick_app(app: &mut App) { pub fn default_login_packet() -> ClientboundLogin { make_basic_login_packet( - DimensionType::new_raw(0), // overworld + DimensionKind::new_raw(0), // overworld Identifier::new("minecraft:overworld"), ) } pub fn make_basic_login_packet( - dimension_type: DimensionType, + dimension_type: DimensionKind, dimension: Identifier, ) -> ClientboundLogin { ClientboundLogin { @@ -354,7 +358,7 @@ pub fn make_basic_login_packet( } pub fn make_basic_respawn_packet( - dimension_type: DimensionType, + dimension_type: DimensionKind, dimension: Identifier, ) -> ClientboundRespawn { ClientboundRespawn { |
