aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/makamys/neodymium/renderer/ChunkMesh.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
index d5bf1b7..c1616f2 100644
--- a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
+++ b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
@@ -426,9 +426,9 @@ public class ChunkMesh extends Mesh {
@Override
public int compare(MeshQuad a, MeshQuad b) {
if(!MeshQuad.isValid(b)) {
- return 1;
- } else if(!MeshQuad.isValid(a)) {
return -1;
+ } else if(!MeshQuad.isValid(a)) {
+ return 1;
} else {
return QUAD_NORMAL_TO_NORMAL_ORDER[a.normal.ordinal()] - QUAD_NORMAL_TO_NORMAL_ORDER[b.normal.ordinal()];
}