Closed bdew closed 1 year ago
Honestly sort of sounds like IC2C is caching things at a point earlier than it is reasonable to do so. Given for our case it has to do with energy storage values, but I am sure plenty of other mods are also using configs. Though I will look at changing it for the next build when I get around to working on it, as one thing that does somewhat confuse me is I vaguely recall vanilla calling fillItemCategory earlier for clients (which I would presume this would crash on but doesn't), though maybe vanilla stopped doing that sometime recently
Issue description
Looks like IC2C is initializing some cache when client has finished loading and that calls fillItemCategory on Mekanism item that tries to read the max charge from server config which isn't loaded at that point.
As the error says it currently only errors in dev but will be happening in prod in the future.
Also it makes it a pain for me to work on Advanced Generators which has integration with both mods.
Steps to reproduce
No response
Minecraft version
1.19.2 (Latest)
Forge version
43.1.52
Mekanism version
10.3.5 (Latest)
Other relevant versions
No response
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
https://gist.github.com/bdew/8c7c5a6addce8ea20eeaacae2466842c