OpenBagTwo / FoxNap

A survival-, multiplayer- and copyright-friendly mod for adding custom music discs to your world
GNU General Public License v3.0
1 stars 1 forks source link

Resource Pack Sometimes Fails To Overwrite Music #41

Closed OpenBagTwo closed 1 year ago

OpenBagTwo commented 1 year ago

Summary

Applying a FoxNapRPG-generated resource pack in a world with the FoxNap mod will sometimes fail to actually override the music the disc plays (the built-in song will be the one that plays). The item texture and name will be correct.

Relevant Versions

Steps to Reproduce

  1. Load Resource Pack
  2. Apply Resource Pack
  3. Load World

This has also happened when applying the resource pack after world load or making no changes and reloading using F3-T. I have not noticed whether this only happens when using tracks that are overriding the built-in songs or whether this will happen with tracks numbered 8 or higher.

Workaround

Sometimes F3-T fixes the issue, sometimes it causes it when the track was working previously.

Severity

Major. Customizing music is the primary selling point of the mod.

Desired Outcome

Fix

Urgency

Before v0.1.0 release

OpenBagTwo commented 1 year ago

This is actually happening even without reloading resources--I play one disc, it's fine. Play a second, it's fine. Play a third, it's wrong, then go back and play the first, and it's also wrong.

Nothing in the logs indicating a problem.

OpenBagTwo commented 1 year ago

Oh you nitwit.

 replace: true/false. Used only in resource packs. True if the sounds listed in sounds should replace the sounds listed in the default sounds.json for this sound event. False if the sounds listed should be added to the list of default sounds. Optional. If undefined, defaults to "false".

:facepalm:

At least this is going to be a ridiculously simple fix.