aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/lodmod/renderer/LODRegion.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/makamys/lodmod/renderer/LODRegion.java')
-rw-r--r--src/main/java/makamys/lodmod/renderer/LODRegion.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODRegion.java b/src/main/java/makamys/lodmod/renderer/LODRegion.java
index ed13980..85de4c9 100644
--- a/src/main/java/makamys/lodmod/renderer/LODRegion.java
+++ b/src/main/java/makamys/lodmod/renderer/LODRegion.java
@@ -58,7 +58,7 @@ public class LODRegion {
}
public static LODRegion load(Path saveDir, int regionX, int regionZ) {
- if(!LODMod.disableChunkMeshes && LODMod.saveMeshes) {
+ if(!(LODMod.disableChunkMeshes || !LODMod.saveMeshes)) {
File saveFile = getSavePath(saveDir, regionX, regionZ).toFile();
if(saveFile.exists()) {
try {
@@ -77,7 +77,7 @@ public class LODRegion {
}
public void save(Path saveDir) {
- if(LODMod.disableChunkMeshes && LODMod.saveMeshes) return;
+ if(LODMod.disableChunkMeshes || !LODMod.saveMeshes) return;
try {
File saveFile = getSavePath(saveDir, regionX, regionZ).toFile();