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, 2 insertions, 2 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODChunk.java b/src/main/java/makamys/lodmod/renderer/LODChunk.java index 63b43e7..ae86103 100644 --- a/src/main/java/makamys/lodmod/renderer/LODChunk.java +++ b/src/main/java/makamys/lodmod/renderer/LODChunk.java @@ -84,9 +84,9 @@ public class LODChunk { public void tick(Entity player) { double distSq = distSq(player); - if(distSq < Math.pow(32 * 16, 2)) { + if(distSq < Math.pow((LODMod.renderer.renderRange / 2) * 16, 2)) { renderer.setLOD(this, 2); - } else if(distSq < Math.pow(64 * 16, 2)) { + } else if(distSq < Math.pow((LODMod.renderer.renderRange) * 16, 2)) { renderer.setLOD(this, 1); } else { renderer.setLOD(this, 0); |