Just Enough Items (JEI)

Just Enough Items (JEI)

369M Downloads

[Bug]: Custom furnace recipes couse JEI to fail to load

EnderiumSmith opened this issue ยท 5 comments

commented

Steps to Reproduce the Bug

Install a mod that adds custom furnace recipes, for example to make it account for nbt data

Expected Behavior

JEI should load

Actual Behavior

java.lang.IllegalArgumentException: minecraft:furnace recipes must be an instance of class net.minecraft.world.item.crafting.SmeltingRecipe. Instead got: class charcoalPit.recipe.AlloySmeltRecipe

The recipe extends AbstractCookingRecipe so JEI crashes when it tries to cast it. Since the furnace works just fine with it and that class seems the sensible thing to extend JEI should work with it too.

Mod Pack URL (Optional)

No response

Mod Pack Version (Optional)

No response

Extra Notes (Optional)

the custom recipe: https://github.com/EnderiumSmith/CharcoalPit3/blob/master/src/main/java/charcoalPit/recipe/AlloySmeltRecipe.java

latest.log

No response

commented

Thanks for the report!
Can you please include the crash log?

commented

the game doesnt crash. just JEI doesnt start. the invalid casting type seems pretty self explanatory.

commented

Can you include the full stack trace for the exception that is raised?

commented

This has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.

commented

This has been automatically closed because it has not had recent activity. Please feel free to update or reopen it.