diff options
author | makamys <makamys@outlook.com> | 2022-06-04 15:54:19 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-04 15:54:19 +0200 |
commit | 37a8f4376b20d360f953f67ce820758c64de33e2 (patch) | |
tree | f286e1c7453432f3ab2243288002efb8c51c1af0 /src/main/java/makamys/lodmod/renderer/LODRegion.java | |
parent | feab86c5ea017c5728625756d320e8e9223e06a5 (diff) | |
download | Neodymium-37a8f4376b20d360f953f67ce820758c64de33e2.tar.gz Neodymium-37a8f4376b20d360f953f67ce820758c64de33e2.tar.bz2 Neodymium-37a8f4376b20d360f953f67ce820758c64de33e2.zip |
Fix saving not getting disabled properly
Diffstat (limited to 'src/main/java/makamys/lodmod/renderer/LODRegion.java')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODRegion.java | 4 |
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(); |