Jump to content

[1.8] Forced chunk loading


BruceKnowsHow

Recommended Posts

I'm trying to update my general Minecraft workspace to 1.8 because of the vastly improved GLSL Shaders supported by Optifine. Currently the only thing stopping me is the fact that I can't get the chunk pre-loading feature in Minema to work.

 

Originally in 1.7.10 the code looked like this:

private WorldRenderer[] worldRenderers;
...
for (WorldRenderer worldRenderer : worldRenderers) {
        	worldRenderer.updateRenderer(MC.renderViewEntity);
        }

 

The creator of the mod tried unsuccessfully to get this feature working on 1.8. He came up with this:

private Set<RenderChunk> chunksToUpdate;
private ChunkRenderDispatcher renderDispatcher;
...
Iterator<RenderChunk> iterator = chunksToUpdate.iterator();
        while (iterator.hasNext()) {
            RenderChunk renderChunk = iterator.next();
            renderDispatcher.updateChunkNow(renderChunk);
            renderChunk.setNeedsUpdate(false);
            iterator.remove();
        }

 

Wondering if anybody here has any idea how to go about this in 1.8. I have very little experience with Java and Minecraft Forge, so if you're willing to spoon-feed me it would be greatly appreciated. Also here's the source for this particular feature on GitHub:

https://github.com/ata4/minema/blob/master/src/main/java/info/ata4/minecraft/minema/client/modules/ChunkPreloader.java

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.