diff options
| author | mat <git@matdoes.dev> | 2025-04-25 01:10:03 -0100 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-04-25 01:10:03 -0100 |
| commit | b3af8d73faa2663e25e5688897720e57842f99ae (patch) | |
| tree | fdc16e01fabce7b7ec4e9f1ff702fe3e6c10dfe5 /azalea-client/src/plugins/inventory.rs | |
| parent | 65c9f555b0274ce9c56aafb73f3f59dbf80f3a85 (diff) | |
| download | azalea-drasl-b3af8d73faa2663e25e5688897720e57842f99ae.tar.xz | |
update to bevy 0.16
Diffstat (limited to 'azalea-client/src/plugins/inventory.rs')
| -rw-r--r-- | azalea-client/src/plugins/inventory.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/azalea-client/src/plugins/inventory.rs b/azalea-client/src/plugins/inventory.rs index e6394ab8..0a9c5cad 100644 --- a/azalea-client/src/plugins/inventory.rs +++ b/azalea-client/src/plugins/inventory.rs @@ -16,14 +16,7 @@ use azalea_protocol::packets::game::{ }; use azalea_registry::MenuKind; use bevy_app::{App, Plugin, Update}; -use bevy_ecs::{ - component::Component, - entity::Entity, - event::EventReader, - prelude::{Event, EventWriter}, - schedule::{IntoSystemConfigs, SystemSet}, - system::{Commands, Query}, -}; +use bevy_ecs::prelude::*; use tracing::{error, warn}; use crate::{ @@ -628,7 +621,7 @@ fn handle_container_close_event( container_id: inventory.id, }, )); - client_side_events.send(ClientSideCloseContainerEvent { + client_side_events.write(ClientSideCloseContainerEvent { entity: event.entity, }); } |
