Curios API (Forge/NeoForge)

Curios API (Forge/NeoForge)

140M Downloads

Crash when trying to run datagen

ochotonida opened this issue ยท 0 comments

commented

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