fix culling when block as a block model (not state)

That fixes culling between/with grass blocks
This commit is contained in:
Moritz Zwerger 2023-10-08 15:42:28 +02:00
parent e76b844747
commit 9d3681ed14
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -25,7 +25,7 @@ object FaceCulling {
if (neighbour == null) return false
if (properties == null) return false
val model = neighbour.model ?: return false
val model = neighbour.model ?: neighbour.block.model ?: return false
val neighbourProperties = model.getProperties(direction) ?: return false // not touching side