aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_add_entity.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-11-13 12:34:47 +0930
committermat <git@matdoes.dev>2025-11-13 07:04:52 +0400
commitfbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00 (patch)
tree3126fb34a4e0ac979a1103a8227a2b9a136c1553 /azalea-protocol/src/packets/game/c_add_entity.rs
parenta4312599f7c04709a92b7be238dcf577bafbb14f (diff)
downloadazalea-drasl-fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00.tar.xz
rename ResourceLocation to Identifier ahead of mojmap changes
Diffstat (limited to 'azalea-protocol/src/packets/game/c_add_entity.rs')
-rw-r--r--azalea-protocol/src/packets/game/c_add_entity.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/c_add_entity.rs b/azalea-protocol/src/packets/game/c_add_entity.rs
index fe473289..fbd2cb8a 100644
--- a/azalea-protocol/src/packets/game/c_add_entity.rs
+++ b/azalea-protocol/src/packets/game/c_add_entity.rs
@@ -1,5 +1,5 @@
use azalea_buf::AzBuf;
-use azalea_core::{delta::LpVec3, position::Vec3, resource_location::ResourceLocation};
+use azalea_core::{delta::LpVec3, identifier::Identifier, position::Vec3};
use azalea_entity::{EntityBundle, metadata::apply_default_metadata};
use azalea_protocol_macros::ClientboundGamePacket;
use azalea_world::MinecraftEntityId;
@@ -34,7 +34,7 @@ impl ClientboundAddEntity {
///
/// You must apply the metadata after inserting the bundle with
/// [`Self::apply_metadata`].
- pub fn as_entity_bundle(&self, world_name: ResourceLocation) -> EntityBundle {
+ pub fn as_entity_bundle(&self, world_name: Identifier) -> EntityBundle {
EntityBundle::new(self.uuid, self.position, self.entity_type, world_name)
}