From ee55453fbf9a799e23cbca60e384f6adf3d11acf Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 6 Nov 2023 18:04:48 -0600 Subject: bevy 0.12 --- azalea/src/container.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea/src/container.rs') diff --git a/azalea/src/container.rs b/azalea/src/container.rs index f5ac710e..08c60dd9 100644 --- a/azalea/src/container.rs +++ b/azalea/src/container.rs @@ -140,7 +140,7 @@ impl ContainerHandle { /// /// 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 + /// inventory, use [`Client::open_inventory`] instead pub fn menu(&self) -> Option { let ecs = self.client.ecs.lock(); let inventory = ecs @@ -179,7 +179,7 @@ impl ContainerHandle { pub struct WaitingForInventoryOpen; fn handle_menu_opened_event(mut commands: Commands, mut events: EventReader) { - for event in events.iter() { + for event in events.read() { if let ClientboundGamePacket::ContainerSetContent { .. } = event.packet { commands .entity(event.entity) -- cgit v1.2.3