fix gray blocks with Optifine custom colors enabled

This commit is contained in:
octarine-noise
2017-09-30 13:37:43 +02:00
parent 73223c15c3
commit 7aa510189a

View File

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