Skip to content

Fix crash with null level during world gen (from third party mods) #8323

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 1 commit into
base: mc1.20.1/dev
Choose a base branch
from

Conversation

Urkaz
Copy link

@Urkaz Urkaz commented Apr 21, 2025

Hi, I'm using Create with a bunch of other mods and datapacks, and one of them generates Belt Tunnel blocks in structures, sometimes causing crashes during world gen.

The crashes happened during the feature placement phase, so probably because of that the "level" variable in the Block Entity was null (or maybe Chunky was the culprit, I don't know), causing a crash when accessing a blockState in updateTunnelConnections.

I don't have the stack of the crash to show you, but after adding this null check the crash went away and the worldgen could contiune its job. Probably the generated blocks are forming a broken/non-functional machine, but it probably doesn't matter in this case (this is my first time using Create, so I don't know what those "flaps" are haha).

@VoidLeech VoidLeech added pr type: fix PR fixes a bug pr flag: simple PR has minimal changes labels Apr 22, 2025
@VoidLeech
Copy link
Collaborator

Fixes #8268

@Wertyhappy27
Copy link

noticed this thread was mentioned on my report, is your temp fix public? something o i can generate that chunk and finish the pregen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr flag: simple PR has minimal changes pr type: fix PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants