aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/container.rs2
1 files changed, 1 insertions, 1 deletions
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>();