aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/makamys/lodmod/renderer/LODChunk.java8
-rw-r--r--src/main/java/makamys/lodmod/renderer/LODRegion.java14
-rw-r--r--src/main/java/makamys/lodmod/renderer/LODRenderer.java2
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");
}