The message
java.lang.NullPointerException: Cannot invoke "net.fabricmc.fabric.api.renderer.v1.Renderer.meshBuilder()" because the return value of "net.fabricmc.fabric.api.renderer.v1.RendererAccess.getRenderer()" is nullThe full message is in the game folder: logs/latest.log for every start, and crash-reports/ for crashes that got far enough to write a report. In Prism, CurseForge and the Modrinth App, the instance's folder button opens the game folder.
What it means
Some mods (Continuity, connected-texture and model mods) draw blocks through the Fabric Rendering API. Fabric API defines it, but a renderer has to provide it.
Sodium before version 0.6.0 replaced the game's renderer without providing this API, so these mods crashed unless Indium was installed next to it. Sodium 0.6.0 and newer has the API built in, and Indium is no longer needed.
OptiFine (through OptiFabric) also switches the API off. That case is fixed by removing OptiFine, not by adding Indium.
How to fix it
- 1Check your Sodium version in the mods folder file name.
- 2Sodium 0.6.0 or newer: make sure Fabric API is up to date, and remove Indium if it is installed; it is not needed and can conflict.
- 3Sodium older than 0.6.0: update Sodium if a 0.6 version exists for your Minecraft version. If not, install the Indium version that matches your Sodium.
- 4If OptiFine or OptiFabric is installed, remove both. Sodium and Iris give the same features.
- 5Start the game again.
With Packquill
Packquill recognises this crash, reads your Sodium version, and says which fix applies: add Indium, update Sodium, or remove OptiFine. Indium is offered in one click from Modrinth when it is the fix.
Packquill is free for Windows and Linux. It backs up every change, so anything it does can be undone.
Questions
Do I still need Indium?
Not with Sodium 0.6.0 or newer. Indium was a bridge for older Sodium versions.
Which mods need the Rendering API?
Continuity is the best known; others are connected-texture, model and block-rendering mods. Their pages say “requires Indium” or “requires a renderer” for older Sodium.