Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long load times for generated chunks #6

Open
NothingClever opened this issue Jul 13, 2017 · 0 comments
Open

Long load times for generated chunks #6

NothingClever opened this issue Jul 13, 2017 · 0 comments

Comments

@NothingClever
Copy link

I recently generated a map and found that Minecraft would take minutes to render the chunks. I eventually discovered that Minecraft stores the integers in the HeightMap structure of a chunk as 0x??00_0000 while TMCMG stores it as 0x??FF_FFFF (using Java 8 update 131). Changing the function setLightHeight in ChunkData from:

lightHeightData[lightHeightIndex(x,z)] = (byte)(height);

to

lightHeightData[lightHeightIndex(x,z)] = (byte)(height) & 0x000000ff;

fixed the issue on my system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant