Skip to content

Commit 91b73ba

Browse files
committed
fix: render world below y=0 without restrictions (fixup for 5d11fae)
1 parent 31160b1 commit 91b73ba

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

prismarine-viewer/viewer/lib/models.ts

-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ function renderLiquid (world, cursor, texture, type, biome, water, attr) {
135135
if (!neighbor) continue
136136
if (neighbor.type === type) continue
137137
if ((neighbor.isCube && !isUp) || neighbor.material === 'plant' || neighbor.getProperties().waterlogged) continue
138-
if (neighbor.position.y < 0) continue
139138

140139
let tint = [1, 1, 1]
141140
if (water) {
@@ -246,7 +245,6 @@ function renderElement (world, cursor, element, doAO, attr, globalMatrix, global
246245
if (neighbor) {
247246
if (cullIfIdentical && neighbor.type === block.type) continue
248247
if (!neighbor.transparent && neighbor.isCube) continue
249-
if (neighbor.position.y < 0) continue
250248
}
251249
}
252250

0 commit comments

Comments
 (0)