mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-14 01:48:04 -04:00
rendering: light accessor: fix potential NullPointerException
This commit is contained in:
parent
f132d960a9
commit
b3ee5ca849
@ -70,7 +70,7 @@ class ElementRenderer(parent: BlockModelElement, val rotation: Vec3, uvLock: Boo
|
||||
|
||||
val texture = textureMapping[face.textureName] ?: TODO("Unknown texture used ${face.textureName}")
|
||||
|
||||
val lightLevel = lightAccessor.getLightLevel(blockPosition + directionMapping[face.cullFace]) // ToDo: rotate cullface
|
||||
val lightLevel = lightAccessor.getLightLevel(blockPosition + face.cullFace?.let { directionMapping[it] }) // ToDo: rotate cullface
|
||||
|
||||
val drawPositions = arrayOf(transformedPositions[positionTemplate[0]], transformedPositions[positionTemplate[1]], transformedPositions[positionTemplate[2]], transformedPositions[positionTemplate[3]])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user