diff options
Diffstat (limited to 'azalea')
| -rw-r--r-- | azalea/examples/testbot.rs | 2 | ||||
| -rw-r--r-- | azalea/src/container.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index a7f34a77..38f8d499 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -47,7 +47,7 @@ async fn main() -> anyhow::Result<()> { let mut accounts = Vec::new(); - for i in 0..200 { + for i in 0..3 { accounts.push(Account::offline(&format!("bot{i}"))); } diff --git a/azalea/src/container.rs b/azalea/src/container.rs index 08c60dd9..5406170a 100644 --- a/azalea/src/container.rs +++ b/azalea/src/container.rs @@ -180,7 +180,7 @@ pub struct WaitingForInventoryOpen; fn handle_menu_opened_event(mut commands: Commands, mut events: EventReader<PacketEvent>) { for event in events.read() { - if let ClientboundGamePacket::ContainerSetContent { .. } = event.packet { + if let ClientboundGamePacket::ContainerSetContent { .. } = event.packet.as_ref() { commands .entity(event.entity) .remove::<WaitingForInventoryOpen>(); |
