Skip to content

Instantly share code, notes, and snippets.

@desht
Created July 30, 2022 08:17
Show Gist options
  • Save desht/443ee6ecddef196e66d11d97ce2e54a9 to your computer and use it in GitHub Desktop.
Save desht/443ee6ecddef196e66d11d97ce2e54a9 to your computer and use it in GitHub Desktop.
[09:15:53] [Thread-0/ERROR] [ne.mi.fm.ja.FMLModContainer/]: Exception caught during firing event: Cannot get config value before config is loaded.
This error is currently only thrown in the development environment, to avoid breaking published mods.
In a future version, this will also throw in the production environment.
Index: 1
Listeners:
0: NORMAL
1: net.minecraftforge.eventbus.EventBus$$Lambda$4398/0x00000008016acf90@33a84c88
java.lang.IllegalStateException: Cannot get config value before config is loaded.
This error is currently only thrown in the development environment, to avoid breaking published mods.
In a future version, this will also throw in the production environment.
at MC-BOOTSTRAP/[email protected]/com.google.common.base.Preconditions.checkState(Preconditions.java:502)
at TRANSFORMER/[email protected]/net.minecraftforge.common.ForgeConfigSpec$ConfigValue.get(ForgeConfigSpec.java:854)
at TRANSFORMER/[email protected]/mekanism.common.config.value.CachedFloatValue.get(CachedFloatValue.java:33)
at TRANSFORMER/[email protected]/mekanism.common.config.value.CachedFloatValue.clearCachedValue(CachedFloatValue.java:71)
at TRANSFORMER/[email protected]/mekanism.common.config.value.CachedValue.clearCache(CachedValue.java:50)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at TRANSFORMER/[email protected]/mekanism.common.config.BaseMekanismConfig.clearCache(BaseMekanismConfig.java:13)
at TRANSFORMER/[email protected]/mekanism.common.config.MekanismModConfig.clearCache(MekanismModConfig.java:34)
at TRANSFORMER/[email protected]/mekanism.tools.common.MekanismTools.onConfigLoad(MekanismTools.java:75)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.javafmlmod.FMLModContainer.lambda$new$0(FMLModContainer.java:42)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.ModContainer.lambda$dispatchConfigEvent$13(ModContainer.java:150)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.ModContainer.dispatchConfigEvent(ModContainer.java:150)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.config.ModConfig.fireEvent(ModConfig.java:77)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigWatcher.run(ConfigFileTypeHandler.java:147)
at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.file.FileWatcher$WatcherThread.run(FileWatcher.java:181)
java.lang.IllegalStateException: Cannot get config value before config is loaded.
This error is currently only thrown in the development environment, to avoid breaking published mods.
In a future version, this will also throw in the production environment.
at MC-BOOTSTRAP/[email protected]/com.google.common.base.Preconditions.checkState(Preconditions.java:502)
at TRANSFORMER/[email protected]/net.minecraftforge.common.ForgeConfigSpec$ConfigValue.get(ForgeConfigSpec.java:854)
at TRANSFORMER/[email protected]/mekanism.common.config.value.CachedFloatValue.get(CachedFloatValue.java:33)
at TRANSFORMER/[email protected]/mekanism.common.config.value.CachedFloatValue.clearCachedValue(CachedFloatValue.java:71)
at TRANSFORMER/[email protected]/mekanism.common.config.value.CachedValue.clearCache(CachedValue.java:50)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at TRANSFORMER/[email protected]/mekanism.common.config.BaseMekanismConfig.clearCache(BaseMekanismConfig.java:13)
at TRANSFORMER/[email protected]/mekanism.common.config.MekanismModConfig.clearCache(MekanismModConfig.java:34)
at TRANSFORMER/[email protected]/mekanism.tools.common.MekanismTools.onConfigLoad(MekanismTools.java:75)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.javafmlmod.FMLModContainer.lambda$new$0(FMLModContainer.java:42)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.ModContainer.lambda$dispatchConfigEvent$13(ModContainer.java:150)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.ModContainer.dispatchConfigEvent(ModContainer.java:150)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.config.ModConfig.fireEvent(ModConfig.java:77)
at LAYER PLUGIN/[email protected]/net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigWatcher.run(ConfigFileTypeHandler.java:147)
at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.file.FileWatcher$WatcherThread.run(FileWatcher.java:181)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment