Wrong Minecraft version

Sodium Crash: ClassMetadataNotFoundException CubicSampler$class_4859

What the log looks like

org\.spongepowered\.asm\.mixin\.throwables\.ClassMetadataNotFoundException: net\.minecraft\.util\.CubicSampler\$class_4859
java\.lang\.ClassNotFoundException: net/minecraft/util/CubicSampler\$class_4859
Mixin apply for mod sodium failed sodium\.mixins\.json:features\.fast_biome_colors\.MixinClientWorld

How to fix it

  1. Open your Minecraft profile's 'mods' folder (in CurseForge, right-click the modpack profile and select 'Open Folder').
  2. Delete the outdated Sodium JAR file, such as sodium-fabric-mc1.17.1-0.3.3+build.8.jar.
  3. Download Sodium 0.4.0 or newer that matches your exact Minecraft version (e.g., 1.18.1) from Modrinth or CurseForge.
  4. Place the new Sodium JAR file directly into your 'mods' folder instead of letting the launcher auto-resolve the Iris dependency, then launch the game.
LoadersFabric, Quilt
SeverityStops the game
CategoryWrong Minecraft version

Check your own log

Related errors