Skip to content

[1.20] Fix chunk IO errors occurring when C2ME is installed (and async feature worldgen is enabled)#4883

Open
carbonatek wants to merge 2 commits into
GregTechCEu:1.20.1from
carbonatek:1.20.1
Open

[1.20] Fix chunk IO errors occurring when C2ME is installed (and async feature worldgen is enabled)#4883
carbonatek wants to merge 2 commits into
GregTechCEu:1.20.1from
carbonatek:1.20.1

Conversation

@carbonatek

Copy link
Copy Markdown
Contributor

What

This is a "port" of #4877 to the 1.20.1 branch, since the same bug affects 1.20 as well.

Implementation Details

Modified the OreIndicatorPlacer interface to include the argument for WorldGenLevel as well, and changed createPlacer to use said argument instead of the one passed down.

AI Usage

  • No AI driven tools were used for this pull request.

Outcome

Fixes: #4799 on the 1.20.1 branch

How Was This Tested

This was tested against a copy of my private modpack's server by generating another big portion of the world again. Unlike before, the server's worldgen did not "crash" due to MC's getPersistedStatus() being null.

Additional Information

Because of what this touches, it is technically an API breaking change.

Potential Compatibility Issues

None found out; the pack it was tested in has 240 mods and there were no issues during world generation, or general gameplay. Of course, given the nature, it is possible that there is an edge case somewhere. Needs testing.

@carbonatek carbonatek requested a review from a team as a code owner May 28, 2026 07:17
@carbonatek

Copy link
Copy Markdown
Contributor Author

Have tested this extensively on both 1.20 and 1.21 (with and without C2ME), and it has worked well. That's all I can provide at this point. Basically had two worlds generating for the last 2 days without any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[1.20.1/1.21.1] Incompatibility with C2ME (and friends) - Surface Indicator Generator Placement

1 participant