From b1582e5a1fe4d9d71ec797fac9c8595d5a12ff40 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Thu, 18 Sep 2025 11:39:50 +1000 Subject: [PATCH] added check against ModelQueries.cullsSame --- .../voxy/client/core/rendering/building/RenderDataFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/voxy/client/core/rendering/building/RenderDataFactory.java b/src/main/java/me/cortex/voxy/client/core/rendering/building/RenderDataFactory.java index 488d9eaf..7e6baee2 100644 --- a/src/main/java/me/cortex/voxy/client/core/rendering/building/RenderDataFactory.java +++ b/src/main/java/me/cortex/voxy/client/core/rendering/building/RenderDataFactory.java @@ -341,7 +341,7 @@ public class RenderDataFactory { private static final long LM = (0xFFL<<55); private static boolean shouldMeshNonOpaqueBlockFace(int face, long quad, long meta, long neighborQuad, long neighborMeta) { - if (((quad^neighborQuad)&(0xFFFFL<<26))==0 && (DISABLE_CULL_SAME_OCCLUDES || ModelQueries.faceOccludes(meta, face))) return false;//This is a hack, if the neigbor and this are the same, dont mesh the face// TODO: FIXME + if (((quad^neighborQuad)&(0xFFFFL<<26))==0 && (DISABLE_CULL_SAME_OCCLUDES || (ModelQueries.cullsSame(meta)||ModelQueries.faceOccludes(meta, face)))) return false;//This is a hack, if the neigbor and this are the same, dont mesh the face// TODO: FIXME if (!ModelQueries.faceExists(meta, face)) return false;//Dont mesh if no face //if (ModelQueries.faceCanBeOccluded(meta, face)) //TODO: maybe enable this if (ModelQueries.faceOccludes(neighborMeta, face^1)) return false;