Skip to content

Commit

Permalink
rename block flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsjo committed Nov 22, 2023
1 parent 92b39e9 commit a916144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/render/ChunkBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class ChunkBuilder {
}
if (!mesh.isEmpty()) {
this.finishChunkMesh(mesh, b.pos)
if (this.resources.getBlockFlags(b.state.getName())?.transparent){
if (this.resources.getBlockFlags(b.state.getName())?.semi_transparent){
chunk.transparentMesh.merge(mesh)
} else {
chunk.mesh.merge(mesh)
Expand Down
2 changes: 1 addition & 1 deletion src/render/StructureRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type GridBuffers = {

export type BlockFlags = {
opaque?: boolean,
transparent?: boolean,
semi_transparent?: boolean,
self_culling?: boolean,
}

Expand Down

0 comments on commit a916144

Please sign in to comment.