Project MMO

Project MMO

11M Downloads

APIUtil Overrides not persisting datapack reloads

Caltinor opened this issue ยท 0 comments

commented

Describe the bug
When using APIUtils#registerXYZ, the settings are dropped on the first data load. This is caused by a change that scripting needed to function properly.

Expected behavior
Overrides added via the API persist reloads and are not supplanted by scripts.

To Reproduce
Steps to reproduce the behavior:

  1. call a registration API hook at any stage during the mod lifecycle
  2. breakpoint the overrideSettings to see the value present
  3. Load into any world or trigger a data reload
  4. see the values from your hook call removed.

Versions:

  • Minecraft: 1.20, 1.21
  • Loader: (Neo)Forge
  • PMMO: