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 when trying to run datagen #188

Closed
ochotonida opened this issue Dec 2, 2021 · 0 comments
Closed

Crash when trying to run datagen #188

ochotonida opened this issue Dec 2, 2021 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@ochotonida
Copy link
Contributor

Versions:

  • Curios: 1.18-5.0.2.2
  • Forge: 38.0.8

Observed Behavior:

Running a data generator while also having Curios installed crashes the game.

Adding an extra safety check here to make sure the minecraft instance isn't null should fix the issue:

public static void init() {
ResourceManager manager = Minecraft.getInstance().getResourceManager();
if (manager instanceof ReloadableResourceManager reloader) {
reloader.registerReloadListener(SPRITE_LISTENER);
}
}

Crash Log: https://paste.gg/p/anonymous/1fbd37ed9d2f4a3bba52fde390ede680

@ochotonida ochotonida added the type: bug Something isn't working label Dec 2, 2021
TheIllusiveC4 added a commit that referenced this issue Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants