Fixes #4674: Facade quads should not keep their original cull-faces if they're moved away

from the block face.
This commit is contained in:
Sebastian Hartte
2020-09-03 17:54:23 +02:00
parent 575a625f75
commit 10a1a6d855
@@ -258,7 +258,9 @@ public class FacadeBuilder {
for (Box box : holeStrips) {
emitter.fromVanilla(quad.getVertexData(), 0, false);
emitter.cullFace(cullFace);
// Keep the cull-face for faces that are flush with the outer block-face on the
// side the facade is attached to, but clear it for anything that faces inwards
emitter.cullFace(cullFace == side ? side : null);
emitter.nominalFace(quad.getFace());
interpolator.setInputQuad(emitter);