Performance

Sodium 0.6.4 Crash When Rendering Moving Pistons or Block Entities ("level" is null)

What the log looks like

java\.lang\.NullPointerException: Cannot invoke "net\.minecraft\.class_1920\.method_24852\(net\.minecraft\.class_2350, boolean\)" because "level" is null
because "level" is null[\s\S]{0,200}net\.caffeinemc\.mods\.sodium\.client\.model\.light\.smooth\.SmoothLightPipeline\.<init>

How to fix it

  1. Open your Minecraft instance's mods folder and locate the Sodium jar file (such as sodium-fabric-0.6.4).
  2. Download and replace it with Sodium 0.6.5 or newer from Modrinth or CurseForge, where the developers patched this crash.
  3. If your modpack cannot update to 0.6.5+ yet, downgrade Sodium to version 0.6.3 as a stable workaround.
  4. Relaunch the game and load your world; existing pistons and moving blocks will render normally without needing to be removed.
LoadersFabric, Quilt
SeverityStops the game
CategoryPerformance

Check your own logDownload sodium on 9Minecraft

Related errors