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

Add isEnabled to IScriptReloadable, clarifying some NPE errors #127

Merged
merged 4 commits into from
Feb 19, 2024

Conversation

WaitingIdly
Copy link
Collaborator

Forestry already had a similar system in place, but applied exclusively to its own compat and didn't provide any error logging.
Now individual registries can override the isEnabled method to ensure the registry actually exists. Only applied this to Integrated Dynamics (resolving #125), Blood Magic (uses same internals), and Forestry (pre-existing).

now, when loading into the world you will be presented with a much more helpful error message of "that registry is disabled" instead of just "Null Pointer Exception".
image

don't know what appends the Possible solutions: line, which in this context provides incorrect information.

@brachy84 brachy84 merged commit 82bb15c into CleanroomMC:master Feb 19, 2024
@WaitingIdly WaitingIdly deleted the integrated-dynamics-fix branch March 16, 2024 08:21
@brachy84 brachy84 added the bug Something isn't working label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants