diff options
Diffstat (limited to 'src/main/java/makamys/lodmod/renderer/LODChunk.java')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODChunk.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODChunk.java b/src/main/java/makamys/lodmod/renderer/LODChunk.java index 0688d22..557b37e 100644 --- a/src/main/java/makamys/lodmod/renderer/LODChunk.java +++ b/src/main/java/makamys/lodmod/renderer/LODChunk.java @@ -39,6 +39,7 @@ public class LODChunk { byte[] data = chunkMeshesCompound.getByteArray(key); 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); + chunkMeshes[keyInt].pass = keyInt % 2; } } @@ -63,6 +64,9 @@ public class LODChunk { for(int i = 0; i < newChunkMeshes.size(); i++) { chunkMeshes[cy * 2 + i] = newChunkMeshes.get(i); + if(newChunkMeshes.get(i) != null) { + chunkMeshes[cy * 2 + i].pass = i; + } } } |