changed hasCliffFace so it works better with chunk borders

This commit is contained in:
cola98765
2022-02-09 18:32:34 +01:00
parent 7203acf628
commit 01870e4875
@@ -365,7 +365,7 @@ public class LodBuilder
int cx = x+dir.getNormal().x;
int cy = y+dir.getNormal().y;
int cz = z+dir.getNormal().z;
if (!chunk.blockPosInsideChunk(cx, cy, cz)) continue;
if (!chunk.blockPosInsideChunk(cx, cy, cz)) return true;
IBlockShapeWrapper block = chunk.getBlockShapeWrapper(cx, cy, cz);
if (block == null || block.hasNoCollision() || block.isToAvoid() || block.isNonFull() || block.hasNoCollision())
return true;