Skip to content

[1.21.4] Fix crash with level wrappers#616

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

[1.21.4] Fix crash with level wrappers#616
2No2Name merged 1 commit intoCaffeineMC:developfrom
IThundxr:pr/level-fix

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

- 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
@IThundxr IThundxr changed the title Fix crash with level wrappers [1.21.4] Fix crash with level wrappers Jan 19, 2025
@2No2Name 2No2Name merged commit 79917b5 into CaffeineMC:develop Jan 19, 2025
1 check passed
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