APIUtil Overrides not persisting datapack reloads
Caltinor opened this issue ยท 0 comments
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:
- call a registration API hook at any stage during the mod lifecycle
- breakpoint the overrideSettings to see the value present
- Load into any world or trigger a data reload
- see the values from your hook call removed.
Versions:
- Minecraft: 1.20, 1.21
- Loader: (Neo)Forge
- PMMO: