aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-26 23:13:26 -0500
committermat <git@matdoes.dev>2023-10-26 23:13:26 -0500
commit48b5d121718c98c3280e0945508324fc4527beec (patch)
treeb99fa869f2d431cb6c8736d1577b1a8f0c05e989 /azalea/src
parent2803e9ef0d785538a23adceba44d45b162629979 (diff)
downloadazalea-drasl-48b5d121718c98c3280e0945508324fc4527beec.tar.xz
remove some unnecessary code and improve docs for Menu
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/container.rs4
1 files changed, 4 insertions, 0 deletions
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<Menu> {
let ecs = self.client.ecs.lock();
let inventory = ecs