From 48b5d121718c98c3280e0945508324fc4527beec Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 26 Oct 2023 23:13:26 -0500 Subject: remove some unnecessary code and improve docs for Menu --- azalea/src/container.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'azalea/src') diff --git a/azalea/src/container.rs b/azalea/src/container.rs index 221b80b9..f5ac710e 100644 --- a/azalea/src/container.rs +++ b/azalea/src/container.rs @@ -137,6 +137,10 @@ impl ContainerHandle { /// Returns the menu of the container. If the container is closed, this /// will return `None`. + /// + /// Note that any modifications you make to the `Menu` you're given will not + /// actually cause any packets to be sent. If you're trying to modify your + /// inventory, use [`Self::open_inventory`] instead pub fn menu(&self) -> Option { let ecs = self.client.ecs.lock(); let inventory = ecs -- cgit v1.2.3