Skip to content

Commit 37c581b

Browse files
committed
Temporary fix call stack (WIP)
1 parent 20cb29e commit 37c581b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/scripts/world/ChunkMesher.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,11 @@ class ChunkMesher {
272272
if (mainBlock.boundingBox === 'block') {
273273
for (const side in neighbours) {
274274
const nBlock = neighbours[side]
275-
if ((mainBlock.transparent && nBlock.boundingBox !== 'block') ||
276-
(nBlock.boundingBox !== 'block' || nBlock.transparent)) {
275+
if (mainBlock.transparent) {
276+
if (nBlock.boundingBox !== 'block') {
277+
this.addFace(tVertexBuffer, VertexBuffer, side, pos)
278+
}
279+
} else if (nBlock.boundingBox !== 'block' || nBlock.transparent) {
277280
this.addFace(tVertexBuffer, VertexBuffer, side, pos)
278281
}
279282
}

0 commit comments

Comments
 (0)