Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamtowards committed Jan 20, 2024
2 parents be693fe + 5f31b4a commit a00b076
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
unstable_features = true

max_width = 150

ignore = [
"src/example/",
"src/constants.rs",
]
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![rustfmt::skip]

use bevy::{prelude::*, window::WindowResolution};

mod game;
Expand Down
1 change: 1 addition & 0 deletions src/voxel/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ impl Chunk {
(localpos.x << 8 | localpos.y << 4 | localpos.z) as usize
}

#[rustfmt::skip]
pub const NEIGHBOR_DIR: [IVec3; 6 + 12 + 8] = [
// 6 Faces
ivec3(-1, 0, 0),
Expand Down

0 comments on commit a00b076

Please sign in to comment.