fabric: In prod, with fabric-content-registries installed, a data pack reload listener doesn't get invoked

How to reproduce the issue:

  1. In prod, first install ONLY level-up-hp and open a single player world.
    • search the log for LevellingConfig; it’s there, loaded fine
  2. Now, add the fabric-api jar and open a single player world again
    • search the log for LevellingConfig; it’s not there. My resource reload listener was never invoked.

What I’ve observed so far is that when only the fabric-api modules I depend on are installed, it works just fine, but when ALL fabric-api modules are installed, my SimpleSynchronousResourceReloadListener never runs. I confirmed this by removing the fabric-api modules I DON’T use from the fabric-api jar, and then repeating step 2 above. The results were the same as step 1. I’m still working on determining the exact module and root cause. See https://gitlab.com/sargunv-mc-mods/level-up-hp/issues/20 for details.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (16 by maintainers)

Commits related to this issue

Most upvoted comments

I’ll hand-push a new 0.3.0-pre build 157 (“a”) with the fixed fabric-content-registries too, for 1.14.1 users.

It’s not trivial, sorry. ResourceReloadHandler is a good start.