Skip to content

fix MC-271899 #419

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

Open
wants to merge 3 commits into
base: 1.21.7
Choose a base branch
from

Conversation

MicrocontrollersDev
Copy link
Contributor

https://bugs.mojang.com/browse/MC/issues/MC-271899

this stems from a neoforge report. it seems its incredibly rare to reproduce but their patch (as described in the mojira bug report) should be enough to patch it. i'm pretty sure this is how you correctly implement a patch like this using mixin, but not 100% on it.

i was previously trying to wrapoperation/modifyexpression it and noticed i was nuking structures entirely. with this current mixin it appears that structures generate fine, so I'm PRing it

private Map<Block, List<StructureTemplate.StructureBlockInfo>> cache;

// Use a thread-safe Concurrent Map instead
@Inject(method = "<init>", at = @At(value = "TAIL"))
Copy link
Owner

Choose a reason for hiding this comment

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

you can just reassign the shadowed field.

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