Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgazelka committed Mar 24, 2024
1 parent f48688e commit e68ca07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/src/bits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl BitStorage {
pub fn into_data(self) -> Vec<u64> {
self.data
}

/// Create a new `BitStorage` with the given number of bits per entry.
/// `size` is the number of entries in the `BitStorage`.
pub fn new(bits: usize, size: usize, data: Option<Vec<u64>>) -> Result<Self, BitStorageError> {
Expand Down
6 changes: 4 additions & 2 deletions server/src/system/player_join_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ use valence_protocol::{
};
use valence_registry::{biome::BiomeId, RegistryIdx};

use crate::{chunk::heightmap, handshake::Packets, KickPlayer, Player, PlayerJoinWorld, GLOBAL};
use crate::bits::BitStorage;
use crate::{
bits::BitStorage, chunk::heightmap, handshake::Packets, KickPlayer, Player, PlayerJoinWorld,
GLOBAL,
};

pub fn player_join_world(
r: Receiver<PlayerJoinWorld, (EntityId, &mut Player)>,
Expand Down

0 comments on commit e68ca07

Please sign in to comment.