mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
fluid mesher: fix light retrieving
This commit is contained in:
parent
cb445ed5d2
commit
6f4b630f4b
@ -172,7 +172,7 @@ class FluidCullSectionPreparer(
|
||||
|
||||
|
||||
val tint = tints?.get(FLUID_TINT_INDEX) ?: Colors.WHITE
|
||||
val light = chunk.getLight(position)
|
||||
val light = chunk.getLight(x, position.y, z)
|
||||
for ((positionIndex, textureIndex) in meshToUse.order) {
|
||||
meshToUse.addVertex(positions[positionIndex].array, texturePositions[textureIndex], texture, tint, light)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user