diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODRenderer.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODRenderer.java b/src/main/java/makamys/lodmod/renderer/LODRenderer.java index c76ea64..7f094f5 100644 --- a/src/main/java/makamys/lodmod/renderer/LODRenderer.java +++ b/src/main/java/makamys/lodmod/renderer/LODRenderer.java @@ -142,7 +142,11 @@ public class LODRenderer { private void sort() { Entity player = Minecraft.getMinecraft().renderViewEntity; - sentMeshes[1].sort(new MeshDistanceComparator(player.posX, player.posY, player.posZ)); + for(List<Mesh> list : sentMeshes) { + list.sort(new MeshDistanceComparator(player.posX / 16, player.posY / 16, player.posZ / 16)); + } + } + private void updateMeshes() { for(List<Mesh> list : sentMeshes) { for(Mesh mesh : list) { |