fluid mesher: fix light retrieving

This commit is contained in:
Bixilon 2022-09-11 22:24:18 +02:00
parent cb445ed5d2
commit 6f4b630f4b
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -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)
}