
Everything uses static initializers
Kneelawk opened this issue ยท 0 comments
Currently, most minecraft objects in the mod are initialized in static initializers. This means that if one class is loaded, and it needs things from other classes, it will load the minecraft objects from those classes, which could cause parts of minecraft to get initialized too early. (Leading to things like vanilla items going missing from the creative menu, etc.)
As much initialization of Minecraft objects should be moved to init()
or register()
methods as possible. Things that must be initialized earlier should be moved to lazy { }
blocks.