diff options
author | makamys <makamys@outlook.com> | 2021-05-09 07:17:49 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2021-05-09 07:17:49 +0200 |
commit | fcd6b68d60f4a3fa50991e75d101497aeca3aa4f (patch) | |
tree | 7b9dfd174fd75c0d9f6a22154de94bb191116b24 /src | |
parent | 0931696d367063a547f1e30be7fa4ac968070f76 (diff) | |
download | Neodymium-fcd6b68d60f4a3fa50991e75d101497aeca3aa4f.tar.gz Neodymium-fcd6b68d60f4a3fa50991e75d101497aeca3aa4f.tar.bz2 Neodymium-fcd6b68d60f4a3fa50991e75d101497aeca3aa4f.zip |
Revert "Don't save the model of chunks on the edge of the loaded world"
This is not needed anymore
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODRenderer.java | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODRenderer.java b/src/main/java/makamys/lodmod/renderer/LODRenderer.java index 51d0519..37a4661 100644 --- a/src/main/java/makamys/lodmod/renderer/LODRenderer.java +++ b/src/main/java/makamys/lodmod/renderer/LODRenderer.java @@ -409,23 +409,8 @@ public class LODRenderer { } public void onWorldRendererPost(WorldRenderer wr) { - int x = Math.floorDiv(wr.posX, 16); - int z = Math.floorDiv(wr.posZ, 16); - LODChunk lodChunk = getLODChunk(x, z); - if(areSurroundingChunksLoaded(x, z, wr.worldObj)) { - lodChunk.putChunkMeshes(Math.floorDiv(wr.posY, 16), ((IWorldRenderer)wr).getChunkMeshes()); - } - } - - public boolean areSurroundingChunksLoaded(int x, int z, World world) { - for(int dx = -1; dx <= 1; dx++) { - for(int dz = -1; dz <= 1; dz++) { - if(!world.getChunkFromChunkCoords(x + dx, z + dz).isChunkLoaded) { - return false; - } - } - } - return true; + LODChunk lodChunk = getLODChunk(Math.floorDiv(wr.posX, 16), Math.floorDiv(wr.posZ, 16)); + lodChunk.putChunkMeshes(Math.floorDiv(wr.posY, 16), ((IWorldRenderer)wr).getChunkMeshes()); } public void onWorldRendererRender(WorldRenderer wr) { |