Describe the bug
When reloading datapacks (e.g. via /reload or enabling a datapack with /datapack enable), the game crashes the reload entirely with the following error:
Exception caught during firing event: Cannot invoke "java.util.List.forEach(java.util.function.Consumer)" because "io.github.jamalam360.jamlib.impl.pack.neoforge.PlatformPackReloadListenerRegistryImpl.queue" is null
This causes all datapacks to fail to load with "Reload failed; keeping old data", even if the datapacks themselves are completely valid.
To Reproduce
- Install the latest version of JamLib
- Add any datapack to a world
- Enable it with
/datapack enable and observe the reload fail
Expected behavior
Datapack reloads complete successfully.
Screenshots

Desktop (please complete the following information):
- Minecraft: 26.1.2
- Mod loader: Neoforge
- Mod version: 2.1.0
Log
Please upload a latest.log file to mglo.gs
Describe the bug
When reloading datapacks (e.g. via
/reloador enabling a datapack with/datapack enable), the game crashes the reload entirely with the following error:Exception caught during firing event: Cannot invoke "java.util.List.forEach(java.util.function.Consumer)" because "io.github.jamalam360.jamlib.impl.pack.neoforge.PlatformPackReloadListenerRegistryImpl.queue" is null
This causes all datapacks to fail to load with "Reload failed; keeping old data", even if the datapacks themselves are completely valid.
To Reproduce
/datapack enableand observe the reload failExpected behavior
Datapack reloads complete successfully.
Screenshots

Desktop (please complete the following information):
Log
Please upload a
latest.logfile to mglo.gs