friendlyhj/ZenRecipeReloading

Error on `/ct reload`

Closed this issue · 2 comments

After installing zenctreload mod, running /ct reload causing sus error:

image

[13:37:35] [Server thread/ERROR] [FML]: Exception caught during firing event youyihj.zenutils.api.reload.ScriptReloadEvent$Post@7d0d0936:
java.lang.IllegalStateException: A HEI API method is being called by another mod from the wrong thread:
Thread[Server thread,3,SERVER]
It must be called on the main thread by using Minecraft.addScheduledTask.
	at mezz.jei.util.ErrorUtil.assertMainThread(ErrorUtil.java:257) ~[ErrorUtil.class:?]
	at mezz.jei.ingredients.IngredientRegistry.addIngredientsAtRuntime(IngredientRegistry.java:240) ~[IngredientRegistry.class:?]
	at mezz.jei.ingredients.IngredientRegistry.addIngredientsAtRuntime(IngredientRegistry.java:222) ~[IngredientRegistry.class:?]
	at crafttweaker.mods.jei.actions.AddItemAction.apply(AddItemAction.java:22) ~[AddItemAction.class:?]
	at youyihj.zenutils.api.reload.ActionReloadCallback.applyReload(ActionReloadCallback.java:23) ~[ActionReloadCallback.class:?]
	at youyihj.zenutils.impl.delegate.ZenUtilsTweaker.apply(ZenUtilsTweaker.java:42) ~[ZenUtilsTweaker.class:?]
	at crafttweaker.CraftTweakerAPI.apply(CraftTweakerAPI.java:151) ~[CraftTweakerAPI.class:?]
[...]
[13:37:35] [Server thread/WARN] [net.minecraft.command.CommandHandler]: Couldn't process command: ct reload
java.lang.IllegalStateException: A HEI API method is being called by another mod from the wrong thread:
Thread[Server thread,3,SERVER]
It must be called on the main thread by using Minecraft.addScheduledTask.
	at mezz.jei.util.ErrorUtil.assertMainThread(ErrorUtil.java:257) ~[ErrorUtil.class:?]
	at mezz.jei.ingredients.IngredientRegistry.addIngredientsAtRuntime(IngredientRegistry.java:240) ~[IngredientRegistry.class:?]
	at mezz.jei.ingredients.IngredientRegistry.addIngredientsAtRuntime(IngredientRegistry.java:222) ~[IngredientRegistry.class:?]
	at crafttweaker.mods.jei.actions.AddItemAction.apply(AddItemAction.java:22) ~[AddItemAction.class:?]
	at youyihj.zenutils.api.reload.ActionReloadCallback.applyReload(ActionReloadCallback.java:23) ~[ActionReloadCallback.class:?]
	at youyihj.zenutils.impl.delegate.ZenUtilsTweaker.apply(ZenUtilsTweaker.java:42) ~[ZenUtilsTweaker.class:?]
	at crafttweaker.CraftTweakerAPI.apply(CraftTweakerAPI.java:151) ~[CraftTweakerAPI.class:?]

debug.log

Just avoid the error. But JEi.addItem is broken (CraftTweaker/CraftTweaker#1020), does it work in your modpack?

Yes, addItem working normally in my modpack.