question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
asiekierkacommented, May 18, 2019

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.

1reaction
asiekierkacommented, May 18, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Datapacks or Resourcepacks in Minecraft - YouTube
We go over a few simple things you can do to debug your datapack or resourcepack in minecraft. Datapack Function Tutorial: ...
Read more >
[1.16] Datapack Client-Server Sync [Solved] - Modder Support
So in my reload listener are calls to my mod registries to set the recipes. In each of those setRecipes method is a...
Read more >
Tutorials/Installing a data pack - Minecraft Wiki - Fandom
Put the data pack into a folder named datapacks . Type /reload from the console or as a level 3 operator if the...
Read more >
How To Install Minecraft Data Packs - Apex Hosting
Learn how to add and use a Minecraft datapack on your server to enhance your experience by introducing new features to the game....
Read more >
Does datapack reload everytime the player quit the map in ...
Hi I'm making my map and i wanted to do a bossbar timer when the game is launched. So basically i have a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found