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

Remove 2MB chunk size limit #320

Merged
merged 3 commits into from
Feb 7, 2024
Merged

Remove 2MB chunk size limit #320

merged 3 commits into from
Feb 7, 2024

Conversation

eigenraven
Copy link
Member

Ports https://github.com/CrucibleMC/Crucible/blob/staging/patches/net/minecraft/world/chunk/storage/RegionFile.java.patch to mixins to allow saving&loading chunks with more than 2MB of data in them.

Tested using a new command that can attach random byte arrays of a specified size to items, oversized chunks save and load correctly.

Together with the previous packet size patch this means chunkbans are now a thing of the past 🥳

@eigenraven eigenraven requested a review from a team February 1, 2024 20:46
@eigenraven eigenraven self-assigned this Feb 1, 2024
@eigenraven
Copy link
Member Author

Tested in full pack now and it works.

@boubou19
Copy link
Member

boubou19 commented Feb 1, 2024

but how does it behave on hybrid servers? Like thermos has it already iirc

@Caedis
Copy link
Member

Caedis commented Feb 1, 2024

The mixin is set to not run when bukkit is detected

Copy link
Contributor

@mitchej123 mitchej123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yolo

@eigenraven eigenraven enabled auto-merge (squash) February 7, 2024 18:41
@eigenraven eigenraven merged commit edd6c60 into master Feb 7, 2024
1 check passed
@eigenraven eigenraven deleted the remove-chunk-size-limit branch February 7, 2024 18:43
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.

4 participants