Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
maxomatic458 committed Oct 23, 2024
1 parent 8de9c05 commit 5336925
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions crates/valence_equipment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ impl Plugin for EquipmentPlugin {
}

/// Contains the visible equipment of a [`LivingEntity`], such as armor and held
/// items. By default this is not synced with a player's [`valence_inventory::Inventory`], so the
/// armor the player has equipped in their inventory, will not be visible by
/// other players. You would have to change the equipment in this component here
/// or attach the [`EquipmentInventorySync`] component to the player
/// entity to sync the equipment with the inventory.
/// items. By default this is not synced with a player's
/// [`valence_inventory::Inventory`], so the armor the player has equipped in
/// their inventory, will not be visible by other players. You would have to
/// change the equipment in this component here or attach the
/// [`EquipmentInventorySync`] component to the player entity to sync the
/// equipment with the inventory.
#[derive(Debug, Default, Clone, Component)]
pub struct Equipment {
equipment: [ItemStack; Self::SLOT_COUNT],
Expand Down

0 comments on commit 5336925

Please sign in to comment.