Config values are not loaded properly
CreativeTechGuy opened this issue ยท 0 comments
Describe the bug
It appears that many config values are not being loaded (seems like a race condition). If a config value is referenced in-line "at runtime", it works properly eg: nanoSaberDamage
, but anything which is part of initial setup either in ModRegistry or as a class property, those appear to not be loading config values and using the defaults.
Steps to Reproduce
Steps to reproduce the behavior:
- Open
config/techreborn/items.json
- Set
nanoSaberDamage
to10
andnanoSaberCost
to50000
andnanoSaberCharge
to100000
- Start game
- Use the saber, notice that the damage (both in tooltip and reality) is correct, but the usage cost and charge is using the default values.
You can reproduce this with many of the items, such as every quantumSuit config.
Screenshots
N/A
Environment (please complete the following information with the version):
- Minecraft: 1.20.1
- Mod Loader: fabric
- TechReborn: 5.8.1
Logs
N/A I've already read through the log and there's nothing relevant.