Skip to content

Datapack reload fails silently due to null queue in PlatformPackReloadListenerRegistryImpl #37

@deonjonker123

Description

@deonjonker123

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

  1. Install the latest version of JamLib
  2. Add any datapack to a world
  3. Enable it with /datapack enable and observe the reload fail

Expected behavior
Datapack reloads complete successfully.

Screenshots
Image

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions