fix: thanks typos

This commit is contained in:
Alexander Medvedev 2025-08-22 12:31:14 +02:00
parent c5c3ffc005
commit 46c048483c
2 changed files with 2 additions and 2 deletions

View File

@ -406,7 +406,7 @@ impl Entity {
}
/// Sets a custom name for the entity, typically used with nametags
pub async fn set_custon_name(&self, name: TextComponent) {
pub async fn set_custom_name(&self, name: TextComponent) {
self.send_meta_data(&[Metadata::new(
2,
MetaDataType::OptionalTextComponent,

View File

@ -30,7 +30,7 @@ impl ItemBehaviour for NameTagItem {
&& let Some(name) = item.get_data_component::<CustomNameImpl>()
{
// TODO
entity.set_custon_name(TextComponent::text(name.name)).await;
entity.set_custom_name(TextComponent::text(name.name)).await;
item.decrement_unless_creative(player.gamemode.load(), 1);
}
}