From 3702b2cb2117b586c41a79d2f74864a99c144bdf Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 5 May 2023 17:01:15 +0000 Subject: rename Client::inventory to open_inventory --- azalea/src/container.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea/src') diff --git a/azalea/src/container.rs b/azalea/src/container.rs index 24774d43..c8849cdd 100644 --- a/azalea/src/container.rs +++ b/azalea/src/container.rs @@ -21,7 +21,7 @@ impl Plugin for ContainerPlugin { pub trait ContainerClientExt { async fn open_container(&mut self, pos: BlockPos) -> Option; - fn inventory(&mut self) -> Option; + fn open_inventory(&mut self) -> Option; } impl ContainerClientExt for Client { @@ -81,7 +81,7 @@ impl ContainerClientExt for Client { /// Note that this will send a packet to the server once it's dropped. Also, /// due to how it's implemented, you could call this function multiple times /// while another inventory handle already exists (but you shouldn't). - fn inventory(&mut self) -> Option { + fn open_inventory(&mut self) -> Option { let ecs = self.ecs.lock(); let inventory = ecs .get::(self.entity) -- cgit v1.2.3