crash during startup with OC: "Please register all environment providers in the init phase."
LlubNek opened this issue ยท 4 comments
What I did:
started minecraft with opencomputers and automated redstone, etc
What happened:
crashed during postinit with message:
net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Automated Redstone (circuits)
Caused by: java.lang.IllegalStateException: Please register all environment providers in the init phase.
at li.cil.oc.server.driver.Registry$.add(Registry.scala:86)
at li.cil.oc.api.Driver.add(Driver.java:98)
at cd4017be.circuits.tileEntity.OC_ADC.registerAPI(OC_ADC.java:388)
at cd4017be.circuits.RedstoneCircuits.postInit(RedstoneCircuits.java:58)
...
Used Versions:
- Minecraft-1.12.2
- AutomatedRedstone-1.12.2-6.1.5
- CD4017BE_lib-1.12.2-6.3.0
- Forge-14.23.5.2808
- OpenComputers-MC1.12.2-1.7.3.146
Hmm ... i just played a modpack with exactly the same versions of OpenComputers, AutomatedRedstone and CD4017BE_lib. And it worked fine: no crash, no error messages and computer control of the ADC-block worked normally.
Maybe one of your other mods in the pack is injecting an older version of the OpenComputers API which overrides the one provided by OC itself.
If so, I'd expect similar crashes from other mods, which doesn't happen. Without automated redstone it works. I could just be getting lucky though.
I've checked OC's source code now and yes the original API version indeed throws the Exception of your crash when a driver is added past init phase. According to that my test-pack working without crash shouldn't have happened ... weird!
Whatever, I'll just move registration to init phase now and hope everything will be fine then.