From e99ae608b67ad3ff105666e619d04ca9385488e1 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 4 Apr 2025 06:11:15 -1400 Subject: rename ChatPacket::username and uuid to sender and sender_uuid also adds more convenience functions to Client --- azalea-client/src/plugins/attack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-client/src/plugins/attack.rs') diff --git a/azalea-client/src/plugins/attack.rs b/azalea-client/src/plugins/attack.rs index 226ae603..5ba84772 100644 --- a/azalea-client/src/plugins/attack.rs +++ b/azalea-client/src/plugins/attack.rs @@ -41,7 +41,7 @@ impl Plugin for AttackPlugin { impl Client { /// Attack the entity with the given id. - pub fn attack(&mut self, entity_id: MinecraftEntityId) { + pub fn attack(&self, entity_id: MinecraftEntityId) { self.ecs.lock().send_event(AttackEvent { entity: self.entity, target: entity_id, -- cgit v1.2.3