aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-23 12:17:17 +0200
committermakamys <makamys@outlook.com>2022-06-23 12:26:58 +0200
commita0a262b8a91527f822356baf27f894be0c31e3af (patch)
tree6780fb73448d27516699b29b27935f3d25349823
parentb7078287401ca20ca98ee19579f33bf028f34353 (diff)
downloadNeodymium-a0a262b8a91527f822356baf27f894be0c31e3af.tar.gz
Neodymium-a0a262b8a91527f822356baf27f894be0c31e3af.tar.bz2
Neodymium-a0a262b8a91527f822356baf27f894be0c31e3af.zip
Make chunk simplification work again
-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()];
}