Tech Reborn

Tech Reborn

30M Downloads

Config values are not loaded properly

CreativeTechGuy opened this issue ยท 0 comments

commented

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 to 10 and nanoSaberCost to 50000 and nanoSaberCharge to 100000
  • 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.