From 5fd57fd630bea256639332f117848d6f1fcfd132 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 4 Apr 2025 16:05:06 -0430 Subject: don't require mut for functions in Client and add some more convenience functions --- azalea-client/src/plugins/interact.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-client/src/plugins/interact.rs') diff --git a/azalea-client/src/plugins/interact.rs b/azalea-client/src/plugins/interact.rs index a0dfa12a..f9513183 100644 --- a/azalea-client/src/plugins/interact.rs +++ b/azalea-client/src/plugins/interact.rs @@ -75,7 +75,7 @@ impl Client { /// /// Note that this may trigger anticheats as it doesn't take into account /// whether you're actually looking at the block. - pub fn block_interact(&mut self, position: BlockPos) { + pub fn block_interact(&self, position: BlockPos) { self.ecs.lock().send_event(BlockInteractEvent { entity: self.entity, position, -- cgit v1.2.3