From f496d09490e2bb228ee413badb6e7d017ecde753 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Mon, 1 Feb 2021 08:39:17 -0600 Subject: [PATCH] Uncomment code needed for resizing regions --- .../java/backsun/lod/proxy/ClientProxy.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/backsun/lod/proxy/ClientProxy.java b/src/main/java/backsun/lod/proxy/ClientProxy.java index 24cf13e7f..5df24f2cf 100644 --- a/src/main/java/backsun/lod/proxy/ClientProxy.java +++ b/src/main/java/backsun/lod/proxy/ClientProxy.java @@ -64,16 +64,16 @@ public class ClientProxy extends CommonProxy return; frameRendered = true; -// int newWidth = Math.max(3, (Minecraft.getMinecraft().gameSettings.renderDistanceChunks * LodRenderer.VIEW_DISTANCE_MULTIPLIER) / LodRegion.SIZE); -// if (lodWorld != null && regionWidth != newWidth) -// { -// lodWorld.resizeDimensionRegionWidth(newWidth); -// regionWidth = newWidth; -// -// // skip this frame, hopefully the lodWorld -// // should have everything set up by then -// return; -// } + int newWidth = Math.max(3, (Minecraft.getMinecraft().gameSettings.renderDistanceChunks * LodRenderer.VIEW_DISTANCE_MULTIPLIER) / LodRegion.SIZE); + if (lodWorld != null && regionWidth != newWidth) + { + lodWorld.resizeDimensionRegionWidth(newWidth); + regionWidth = newWidth; + + // skip this frame, hopefully the lodWorld + // should have everything set up by then + return; + } Minecraft mc = Minecraft.getMinecraft(); int dimId = mc.player.dimension;