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

Temp fix for disappearing chunk sections in 1.14 #5560

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MightyFilipns
Copy link

Previously the value sent for nonEmptyBlocks in each chunk section was -1. This was probably set with the intention to set it to the max value. However, the game also interprets the value as signed. meaning when a block is placed the value is incremented to 0. But when the nonEmptyBlocks value is 0 the game treats that section as empty and stops rendering blocks in it.

This patch makes sure that the value sent is 4096, the amount of blocks in any section. This will probably lead to the inverse bug where the game will treat empty sections as non-empty.

Previously the value for nonEmptyBlocks in each chunk section was -1. This was probably set with the intention to set it to the max value. However, the game also interprets the value as signed. meaning when a block is placed the value is incremented to 0.  But when the nonEmptyBlocks value is 0 the game treats that section as empty and stops rendering blocks in it. 

This patch makes sure that the value sent is 4096, the amount of blocks in any section. This will probably lead to the inverse bug where the game will treat empty sections as non-empty.
@MightyFilipns MightyFilipns changed the title Temp fix for dissapearing section in 1.13 and 1.14 versions Temp fix for dissapearing chunk sections in 1.13 and 1.14 versions May 11, 2024
@MightyFilipns MightyFilipns changed the title Temp fix for dissapearing chunk sections in 1.13 and 1.14 versions Temp fix for dissapearing chunk sections in 1.14 May 12, 2024
@MightyFilipns MightyFilipns changed the title Temp fix for dissapearing chunk sections in 1.14 Temp fix for disappearing chunk sections in 1.14 May 12, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant