Skip to content

Commit

Permalink
remove unnecessary filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 committed Jan 21, 2023
1 parent 8bb95dd commit ff3e307
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/valence_new/src/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ impl Inventory {
}

/// Send updates for each client's player inventory.
pub(crate) fn update_player_inventories(
mut query: Query<(&mut Inventory, &mut Client), Without<OpenInventory>>,
) {
pub(crate) fn update_player_inventories(mut query: Query<(&mut Inventory, &mut Client)>) {
for (mut inventory, mut client) in query.iter_mut() {
if inventory.kind != InventoryKind::Player {
warn!("Inventory on client entity is not a player inventory");
Expand Down

0 comments on commit ff3e307

Please sign in to comment.