Skip to content

[1.21.1] Fix crash with level wrappers#617

Merged
2No2Name merged 1 commit intoCaffeineMC:1.21.1from
IThundxr:pr/level-fix-1.21.1
Jan 19, 2025
Merged

[1.21.1] Fix crash with level wrappers#617
2No2Name merged 1 commit intoCaffeineMC:1.21.1from
IThundxr:pr/level-fix-1.21.1

Conversation

@IThundxr
Copy link
Contributor

  • Use the passed RegistryAccess instead of retrieving it from the level ourselves, this fixes an issue with mods like create that wrap levels, as this mixin injects into the super call, and they set the level after the super call, which results in their stored/wrapped level being null when Level#registryAccess is called

Backport of #616

- Use the passed RegistryAccess instead of retrieving it from the level ourselves, this fixes an issue with mods like create that wrap levels, as this mixin injects into the super call, and they set the level after the super call, which results in their stored/wrapped level being null when Level#registryAccess is called
@2No2Name 2No2Name merged commit 567e7ff into CaffeineMC:1.21.1 Jan 19, 2025
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