diff options
| author | mat <git@matdoes.dev> | 2023-11-18 00:49:44 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-11-18 00:49:44 -0600 |
| commit | 71cd3f021e5aeec81d9b473860702da15668b7c9 (patch) | |
| tree | c4015e92cdea8796cd0a783d0536359abfc62631 /azalea/src | |
| parent | e39de79a6b5913cab2ee59cff492317a24726ba4 (diff) | |
| download | azalea-drasl-71cd3f021e5aeec81d9b473860702da15668b7c9.tar.xz | |
make packet an Arc in PacketEvent
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/container.rs | 2 |
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>(); |
