aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-07 23:42:02 +0200
committermakamys <makamys@outlook.com>2022-06-07 23:42:08 +0200
commit641b12728fc3a79666dd0cccb9cd76e7d5698fa2 (patch)
tree4b2280d4098ca8e48892f85bb033c628e55e0fda /src/main/java
parent2373734860f4e52b83f0e9ac901ac515dd95b13b (diff)
downloadNeodymium-641b12728fc3a79666dd0cccb9cd76e7d5698fa2.tar.gz
Neodymium-641b12728fc3a79666dd0cccb9cd76e7d5698fa2.tar.bz2
Neodymium-641b12728fc3a79666dd0cccb9cd76e7d5698fa2.zip
Actually disable simple meshes
Reduces ram usage, by A LOT!
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/makamys/lodmod/renderer/LODChunk.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODChunk.java b/src/main/java/makamys/lodmod/renderer/LODChunk.java
index c4c1fa1..5830132 100644
--- a/src/main/java/makamys/lodmod/renderer/LODChunk.java
+++ b/src/main/java/makamys/lodmod/renderer/LODChunk.java
@@ -166,7 +166,9 @@ public class LODChunk {
}
public void receiveChunk(Chunk chunk) {
- putSimpleMeshes(SimpleChunkMesh.generateSimpleMeshes(chunk));
+ if(!LODMod.disableSimpleMeshes) {
+ putSimpleMeshes(SimpleChunkMesh.generateSimpleMeshes(chunk));
+ }
}
public boolean isFullyVisible() {