diff --git a/src/main/kotlin/mods/betterfoliage/client/integration/OptifineCTM.kt b/src/main/kotlin/mods/betterfoliage/client/integration/OptifineCTM.kt index 8d1846d..36e54de 100644 --- a/src/main/kotlin/mods/betterfoliage/client/integration/OptifineCTM.kt +++ b/src/main/kotlin/mods/betterfoliage/client/integration/OptifineCTM.kt @@ -93,7 +93,7 @@ object OptifineCTM { renderEnv.reset(ctx.world!!, ctx.blockState(Int3.zero), ctx.pos) Refs.getColorMultiplier.invokeStatic(fakeQuad, ctx.blockState(Int3.zero), ctx.world!!, ctx.pos, renderEnv.wrapped) as? Int } else null - return ofColor ?: ctx.blockData(Int3.zero).color + return if (ofColor == null || ofColor == -1) ctx.blockData(Int3.zero).color else ofColor } }