Botanical Addons

Botanical Addons

69.7k Downloads

Loading without thaumcraft crashes.

L0neKitsune opened this issue · 2 comments

commented

Accessing the ItemApi from thaumcraft without thaumcraft will crash the game.

Caused by: java.lang.NoClassDefFoundError: thaumcraft/api/ItemApi
at ninja.shadowfox.shadowfox_botany.common.compat.thaumcraft.ThaumcraftSuffusionRecipes.(ThaumcraftSuffusionRecipes.kt:26)
at ninja.shadowfox.shadowfox_botany.common.compat.thaumcraft.ThaumcraftSuffusionRecipes.(ThaumcraftSuffusionRecipes.kt:16)
at ninja.shadowfox.shadowfox_botany.common.lexicon.LexiconRegistry.(LexiconRegistry.kt:161)
at ninja.shadowfox.shadowfox_botany.common.lexicon.LexiconRegistry.(LexiconRegistry.kt:17)
at ninja.shadowfox.shadowfox_botany.common.core.proxy.CommonProxy.preInit(CommonProxy.kt:27)
at ninja.shadowfox.shadowfox_botany.client.core.proxy.ClientProxy.preInit(ClientProxy.kt:26)
at ninja.shadowfox.shadowfox_botany.ShadowfoxBotany.preInit(ShadowfoxBotany.kt:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
... 12 more

commented

@yrsegal an objects global vals are initialized when the object is first referenced, not when the val is referenced so even checking the recipesLoaded var will trigger the call to the ItemApi in thaumcraft.

commented

Got it.
On Thu, Jan 28, 2016 at 2:11 AM Crowe [email protected] wrote:

@yrsegal https://github.com/yrsegal an objects global vals are
initialized when the object is first referenced, not when the val is
referenced so even checking the recipesLoaded var will trigger the call to
the ItemApi in thaumcraft.


Reply to this email directly or view it on GitHub
#80 (comment)
.