diff options
| author | mat <git@matdoes.dev> | 2023-11-06 18:04:48 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-11-06 18:04:57 -0600 |
| commit | ee55453fbf9a799e23cbca60e384f6adf3d11acf (patch) | |
| tree | 94ffd6b431ade8434d4ed4bf6dbf7126d60d5a2b /azalea/src/container.rs | |
| parent | 48b5d121718c98c3280e0945508324fc4527beec (diff) | |
| download | azalea-drasl-ee55453fbf9a799e23cbca60e384f6adf3d11acf.tar.xz | |
bevy 0.12
Diffstat (limited to 'azalea/src/container.rs')
| -rw-r--r-- | azalea/src/container.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<Menu> { 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<PacketEvent>) { - for event in events.iter() { + for event in events.read() { if let ClientboundGamePacket::ContainerSetContent { .. } = event.packet { commands .entity(event.entity) |
