Skip to content

Commit ec80d29

Browse files
Fix mesher
1 parent 7dcc874 commit ec80d29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/terrain/util/mesher.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ pub fn create_chunk_mesh(chunk: &Chunk, texture_manager: &TextureManager) -> Opt
8686
indices: Vec::new(),
8787
};
8888

89-
for x in 1..CHUNK_SIZE - 1 {
90-
for y in 1..CHUNK_SIZE - 1 {
91-
for z in 1..CHUNK_SIZE - 1 {
89+
for x in 0..CHUNK_SIZE {
90+
for y in 0..CHUNK_SIZE {
91+
for z in 0..CHUNK_SIZE {
9292
let block_id = chunk.get(x, y, z);
9393

9494
if block_id == BlockId::Air {

0 commit comments

Comments
 (0)