aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/attack.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-04-04 06:11:15 -1400
committermat <git@matdoes.dev>2025-04-04 18:24:22 -0200
commite99ae608b67ad3ff105666e619d04ca9385488e1 (patch)
tree2457aa38334ccc4a542d0fbf52ca09db39c31c0b /azalea-client/src/plugins/attack.rs
parent1fd02925903cfe59e85977b5c27e49457d99b142 (diff)
downloadazalea-drasl-e99ae608b67ad3ff105666e619d04ca9385488e1.tar.xz
rename ChatPacket::username and uuid to sender and sender_uuid
also adds more convenience functions to Client
Diffstat (limited to 'azalea-client/src/plugins/attack.rs')
-rw-r--r--azalea-client/src/plugins/attack.rs2
1 files changed, 1 insertions, 1 deletions
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,