Uncomment code needed for resizing regions

This commit is contained in:
James Seibel
2021-02-01 08:39:17 -06:00
parent b2417957d6
commit f496d09490
@@ -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;