Crash with `0.10.7-rc2`
Steveplays28 opened this issue ยท 3 comments
Version info
- Minecraft
1.19.2
- Forgero
0.10.7-rc2-BETA-1.19.2
- Quilt
0.18.1-beta.59
- QSL
4.0.0-beta.27
(provides Fabric API0.73.0
)
Log
org.quiltmc.loader.impl.FormattedException: java.lang.NullPointerException: Cannot invoke "com.sigmundgranaas.forgero.core.type.TypeTree.find(com.sigmundgranaas.forgero.core.type.Type)" because "com.sigmundgranaas.forgero.core.ForgeroStateRegistry.TREE" is null
Issue comes from the fact that The Fuel time map is created before Forgero is initialized. I don't really know why this happends, but it means that Forgero won't support burning parts as fuel on Quilt.
Alrighty, thanks for fixing the issue though, even if you had to remove functionality.
I make quite a few calls the the typetree around the codebase which really should not happen. I guess this issue would fit well with rewriting the typetree functionality behind a better interface. Directly referencing it should happen through a service of some sorts to prevent nullpointers like this from happening.