Wrong Minecraft version

NoSuchMethodError: org.lwjgl.opengl.WGL.wglGetCurrentContext() with Sodium

What it looks like in the log

java.lang.NoSuchMethodError: wglGetCurrentContext() on NeoForge <so>

How to fix it

  1. Open your instance settings in Prism Launcher (or MultiMC) and navigate to the Version tab.
  2. Select LWJGL 3 in the component list and click Change Version (or Reset) to revert from LWJGL 3.4.x back to LWJGL 3.3.3 (or the default version bundled with your Minecraft release).
  3. If you are on an unsupported Minecraft version like 1.21.5 and still encounter issues, migrate your instance and Sodium to an actively supported release such as 1.21.1 or the latest version.
LoadersNeoforge, Fabric, Quilt
SeverityStops the game
CategoryWrong Minecraft version

Check your own log

Related errors