Skip to content

Commit 91d4f7c

Browse files
committed
am so fking stupid (the test is done 2 lines later)
1 parent a5c7f56 commit 91d4f7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/me/cortex/voxy/client/core/rendering/building/RenderDataFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ private void acquireNeighborData(WorldSection section, int msk) {
353353
private static final long LM = (0xFFL<<55);
354354

355355
private static boolean shouldMeshNonOpaqueBlockFace(int face, long quad, long meta, long neighborQuad, long neighborMeta) {
356-
if (((quad^neighborQuad)&(0xFFFFL<<26))==0 && (DISABLE_CULL_SAME_OCCLUDES || (ModelQueries.cullsSame(meta)||(ModelQueries.faceCanBeOccluded(meta, face)&&ModelQueries.faceOccludes(meta, face^1))))) return false;//This is a hack, if the neigbor and this are the same, dont mesh the face// TODO: FIXME
356+
if (((quad^neighborQuad)&(0xFFFFL<<26))==0 && (DISABLE_CULL_SAME_OCCLUDES || ModelQueries.cullsSame(meta))) return false;//This is a hack, if the neigbor and this are the same, dont mesh the face// TODO: FIXME
357357
if (!ModelQueries.faceExists(meta, face)) return false;//Dont mesh if no face
358358
if (ModelQueries.faceCanBeOccluded(meta, face)) //TODO: maybe enable this
359359
if (ModelQueries.faceOccludes(neighborMeta, face^1)) return false;

0 commit comments

Comments
 (0)