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

Thermos Compat with postNeidWorldsSupport #22

Merged
merged 5 commits into from
Sep 18, 2024
Merged

Conversation

Cleptomania
Copy link
Member

When postNeidWorldsSupport is disabled, that means the vanilla Blocks and Data byte[] values no longer get stored in the NBT. This means that during readChunkFromNBT, the NibbleArray created for the block metadata, gets created with an empty byte[].

Thermos(specifically spigot), makes this change to NibbleArray, which causes it to crash when created with an empty byte[]. So this change injects a static fake byte[] with one value in it that will be passed into the NibbleArray creation, instead of trying to pull the value from the Data NBT tag.

@Cleptomania Cleptomania requested a review from a team September 18, 2024 21:28
Copy link
Contributor

Warning: 2 uncommitted changes
#23

@boubou19 boubou19 merged commit f3f27ad into master Sep 18, 2024
1 check passed
@boubou19 boubou19 deleted the thermos-nibble-compat branch September 18, 2024 22:17
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.

2 participants