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