diff --git a/src/main/kotlin/mods/betterfoliage/client/render/AbstractRenderColumn.kt b/src/main/kotlin/mods/betterfoliage/client/render/AbstractRenderColumn.kt index 95123da..53789ab 100644 --- a/src/main/kotlin/mods/betterfoliage/client/render/AbstractRenderColumn.kt +++ b/src/main/kotlin/mods/betterfoliage/client/render/AbstractRenderColumn.kt @@ -179,6 +179,8 @@ abstract class AbstractRenderColumn(modId: String) : AbstractBlockRenderingHandl var downModel: Model? = null var upIcon = upTexture var downIcon = downTexture + var shouldRotateUp = true + var shouldRotateDown = true when (upType) { NONSOLID -> upModel = flatTop(quadrants[idx]) @@ -188,6 +190,7 @@ abstract class AbstractRenderColumn(modId: String) : AbstractBlockRenderingHandl } else { upIcon = sideTexture upModel = extendTop(quadrants[idx]) + shouldRotateUp = false } } PARALLEL -> { @@ -206,6 +209,7 @@ abstract class AbstractRenderColumn(modId: String) : AbstractBlockRenderingHandl } else { downIcon = sideTexture downModel = extendBottom(quadrants[idx]) + shouldRotateDown = false } } PARALLEL -> { @@ -222,7 +226,7 @@ abstract class AbstractRenderColumn(modId: String) : AbstractBlockRenderingHandl rotation, blockContext.blockCenter, icon = upIcon, - rotateUV = { 0 }, + rotateUV = { if (shouldRotateUp) idx else 0 }, postProcess = noPost ) if (downModel != null) modelRenderer.render( @@ -231,7 +235,7 @@ abstract class AbstractRenderColumn(modId: String) : AbstractBlockRenderingHandl rotation, blockContext.blockCenter, icon = downIcon, - rotateUV = { 0 }, + rotateUV = { if (shouldRotateDown) 3 - idx else 0 }, postProcess = noPost ) }