diff options
Diffstat (limited to 'src/main/java/makamys/neodymium/renderer/NeoRenderer.java')
-rw-r--r-- | src/main/java/makamys/neodymium/renderer/NeoRenderer.java | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java index 3e1abe5..2a18950 100644 --- a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java +++ b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java @@ -638,14 +638,14 @@ public class NeoRenderer { } for(int y = 0; y < 16; y++) { for(int pass = 0; pass < 2; pass++) { - CullableMeshCollection cm = lodChunk.chunkMeshes[y * 2 + pass]; + ChunkMesh cm = lodChunk.chunkMeshes[y * 2 + pass]; if(cm != null) { if(lodChunk.isSectionVisible[y] && newLOD == 2) { - if(!cm.isVisible()) { + if(!cm.visible) { setMeshVisible(cm, true); } } else { - if(cm.isVisible()) { + if(cm.visible) { setMeshVisible(cm, false); } } @@ -654,14 +654,6 @@ public class NeoRenderer { } } - protected void setMeshVisible(CullableMeshCollection cm, boolean visible) { - if(cm == null) return; - - for(ChunkMesh mesh : cm.getMeshes()) { - if(mesh != null) setMeshVisible(mesh, visible); - } - } - protected void setMeshVisible(Mesh mesh, boolean visible) { setMeshVisible(mesh, visible, false); } @@ -687,14 +679,6 @@ public class NeoRenderer { setMeshVisible(mesh, false); } - public void removeMesh(CullableMeshCollection cm) { - if(cm == null) return; - - for(Mesh mesh : cm.getMeshes()) { - if(mesh != null) removeMesh(mesh); - } - } - public Chunk getChunkFromChunkCoords(int x, int z) { for(Chunk chunk : myChunks) { if(chunk.xPosition == x && chunk.zPosition == z) { |