Skip to content

Conversation

@gisellevonbingen
Copy link

@gisellevonbingen gisellevonbingen commented Jan 27, 2026

Closes #
Closes #

Changes proposed in this pull request

Testing

  • Yes I tested this before submitting it.
  • I also did a multiplayer test.

Crashed code.
https://github.com/RelativityMC/C2ME-fabric/blob/4e4b37e5848f70a4b53776d59263f831c6a7d113/c2me-threading-worldgen/src/main/java/com/ishland/c2me/threading/worldgen/mixin/MixinChunkRegion.java#L41-L44
image

The parameter what type is ChunkStatus is not marked as nullable.
I think using ChunkStatus.EMPTY is better than null even if it is no used anywhere in vanilla.
image

Review please

@CLAassistant
Copy link

CLAassistant commented Jan 27, 2026

CLA assistant check
All committers have signed the CLA.

private OurWorldGenRegion(ServerLevel p_143484_, List<ChunkAccess> p_143485_)
{
super(p_143484_, p_143485_, null, -1);
super(p_143484_, p_143485_, ChunkStatus.EMPTY, -1);
Copy link
Member

Choose a reason for hiding this comment

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

Use SURFACE please, it's not used by vanilla anyway in 1.20

Copy link
Author

Choose a reason for hiding this comment

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

Changed.

@gisellevonbingen gisellevonbingen changed the title Using ChunkStatus.EMPTY insteadof null Using ChunkStatus.SURFACE insteadof null Jan 27, 2026
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.

3 participants