diff options
author | makamys <makamys@outlook.com> | 2022-06-06 21:33:00 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-06 23:14:01 +0200 |
commit | fd1ab256fc8a88affaacb71095e55318f0289036 (patch) | |
tree | 9f8cd5723e03fbdb3ab9572f97642ef0750bf28f /src | |
parent | 96d5107d408e0328413c70baa4a2005ef98eb6cb (diff) | |
download | Neodymium-fd1ab256fc8a88affaacb71095e55318f0289036.tar.gz Neodymium-fd1ab256fc8a88affaacb71095e55318f0289036.tar.bz2 Neodymium-fd1ab256fc8a88affaacb71095e55318f0289036.zip |
Comment out save/load
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODChunk.java | 8 | ||||
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODRegion.java | 14 | ||||
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODRenderer.java | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODChunk.java b/src/main/java/makamys/lodmod/renderer/LODChunk.java index bc17c90..c4c1fa1 100644 --- a/src/main/java/makamys/lodmod/renderer/LODChunk.java +++ b/src/main/java/makamys/lodmod/renderer/LODChunk.java @@ -29,7 +29,7 @@ public class LODChunk { this.x = x; this.z = z; } - + /* public LODChunk(NBTTagCompound nbt, List<String> spriteList) { this.x = nbt.getInteger("x"); this.z = nbt.getInteger("z"); @@ -47,7 +47,7 @@ public class LODChunk { chunkMeshes[keyInt] = new ChunkMesh(x, keyInt / 2, z, new ChunkMesh.Flags(true, true, true, false), data.length / (2 + 4 * (3 + 2 + 2 + 4)), data, spriteList, keyInt % 2); } } - + */ @Override public String toString() { return "LODChunk(" + x + ", " + z + ")"; @@ -129,7 +129,7 @@ public class LODChunk { } } } - + /* public NBTTagCompound saveToNBT(NBTTagCompound oldNbt, List<String> oldStringTable) { NBTTagCompound nbt = new NBTTagCompound(); nbt.setInteger("x", x); @@ -150,7 +150,7 @@ public class LODChunk { dirty = false; return nbt; } - + */ public void destroy() { for(SimpleChunkMesh scm: simpleMeshes) { if(scm != null) { diff --git a/src/main/java/makamys/lodmod/renderer/LODRegion.java b/src/main/java/makamys/lodmod/renderer/LODRegion.java index 85de4c9..9fdaa89 100644 --- a/src/main/java/makamys/lodmod/renderer/LODRegion.java +++ b/src/main/java/makamys/lodmod/renderer/LODRegion.java @@ -38,7 +38,7 @@ public class LODRegion { } } } - + /* public LODRegion(int regionX, int regionZ, NBTTagCompound nbt) { this.regionX = regionX; this.regionZ = regionZ; @@ -56,9 +56,9 @@ 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 { @@ -68,10 +68,10 @@ public class LODRegion { e.printStackTrace(); } } - } + }*/ return new LODRegion(regionX, regionZ); } - + /* private static Path getSavePath(Path saveDir, int regionX, int regionZ) { return saveDir.resolve("lod").resolve(regionX + "," + regionZ + ".lod"); } @@ -127,7 +127,7 @@ public class LODRegion { e.printStackTrace(); } } - + */ public LODChunk getChunkAbsolute(int chunkXAbs, int chunkZAbs) { return getChunk(chunkXAbs - regionX * 32, chunkZAbs - regionZ * 32); } @@ -168,7 +168,7 @@ public class LODRegion { } public void destroy(Path saveDir) { - save(saveDir); + //save(saveDir); for(int i = 0; i < 32; i++) { for(int j = 0; j < 32; j++) { LODChunk chunk = data[i][j]; diff --git a/src/main/java/makamys/lodmod/renderer/LODRenderer.java b/src/main/java/makamys/lodmod/renderer/LODRenderer.java index 908ab65..3ec1a08 100644 --- a/src/main/java/makamys/lodmod/renderer/LODRenderer.java +++ b/src/main/java/makamys/lodmod/renderer/LODRenderer.java @@ -684,7 +684,7 @@ public class LODRenderer { public void onSave() { System.out.println("Saving LOD regions..."); long t0 = System.currentTimeMillis(); - loadedRegionsMap.forEach((k, v) -> v.save(getSaveDir())); + //loadedRegionsMap.forEach((k, v) -> v.save(getSaveDir())); System.out.println("Finished saving LOD regions in " + ((System.currentTimeMillis() - t0) / 1000.0) + "s"); } |