From 6212d95cddd56260996637302581699e49417f37 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sat, 20 Dec 2025 19:01:33 +1000 Subject: [PATCH] face thing TODO: CHECK IS OPTIMAL --- .../client/core/rendering/building/RenderDataFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 5d518cc8..e31d6723 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 @@ -344,8 +344,8 @@ public class RenderDataFactory { 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.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; + if (ModelQueries.faceCanBeOccluded(meta, face)) //TODO: maybe enable this + if (ModelQueries.faceOccludes(neighborMeta, face^1)) return false; return true; }