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

[Crash] Better Dungeon and Better Stronghold structure overlapping and crashing #76

Open
pietro-lopes opened this issue Feb 9, 2025 · 2 comments

Comments

@pietro-lopes
Copy link

How to reproduce

Seed: -6615792431629871999

Mods required

  • YungsBetterDungeons-1.21.1-NeoForge-5.1.4.jar
  • YungsBetterStrongholds-1.21.1-NeoForge-5.1.2.jar

Run this command:
/tp @s -3680 90 -3696

Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.Level.registryAccess()" because "this.level" is null
	at net.minecraft.world.level.block.entity.JukeboxBlockEntity.setTheItem:L129
	at net.minecraft.world.level.block.entity.JukeboxBlockEntity.splitTheItem:L120

https://gnomebot.dev/paste/mclogs/Y8x8HsG#L354

@pietro-lopes
Copy link
Author

pietro-lopes commented Feb 9, 2025

This crash happens because the block that will replace the Jukebox is a blockstate that contains NBT stuff, so it goes into this block code that calls Clearable#tryClear and later on the Jukebox it tries to call level without checking for null, which breaks the contract?

Image

Image

No null check

Image

@pietro-lopes
Copy link
Author

Any ETA on this? Another user is having exact same crash.

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

No branches or pull requests

1 participant